From 6abb04c4f89bb4514f8eeffffdec39ea4a1a9746 Mon Sep 17 00:00:00 2001 From: Matthew Shao Date: Sat, 27 May 2017 21:24:23 +0800 Subject: [PATCH] [web] Add snapshot files. --- .../ConnectionIndicatorSpec.js.snap | 50 +++++++++++ .../Header/__snapshots__/FileMenuSpec.js.snap | 86 +++++++++++++++++++ .../__snapshots__/FilterDocsSpec.js.snap | 7 ++ .../__snapshots__/FilterInputSpec.js.snap | 30 +++++++ 4 files changed, 173 insertions(+) create mode 100644 web/src/js/__tests__/components/Header/__snapshots__/ConnectionIndicatorSpec.js.snap create mode 100644 web/src/js/__tests__/components/Header/__snapshots__/FileMenuSpec.js.snap create mode 100644 web/src/js/__tests__/components/Header/__snapshots__/FilterDocsSpec.js.snap create mode 100644 web/src/js/__tests__/components/Header/__snapshots__/FilterInputSpec.js.snap diff --git a/web/src/js/__tests__/components/Header/__snapshots__/ConnectionIndicatorSpec.js.snap b/web/src/js/__tests__/components/Header/__snapshots__/ConnectionIndicatorSpec.js.snap new file mode 100644 index 000000000..817ba395a --- /dev/null +++ b/web/src/js/__tests__/components/Header/__snapshots__/ConnectionIndicatorSpec.js.snap @@ -0,0 +1,50 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`ConnectionIndicator Component should connect to state 1`] = ` + + connected + +`; + +exports[`ConnectionIndicator Component should render ERROR 1`] = ` + + connection lost + +`; + +exports[`ConnectionIndicator Component should render ESTABLISHED 1`] = ` + + connected + +`; + +exports[`ConnectionIndicator Component should render FETCHING 1`] = ` + + fetching data… + +`; + +exports[`ConnectionIndicator Component should render INIT 1`] = ` + + connecting… + +`; + +exports[`ConnectionIndicator Component should render OFFLINE 1`] = ` + + offline + +`; diff --git a/web/src/js/__tests__/components/Header/__snapshots__/FileMenuSpec.js.snap b/web/src/js/__tests__/components/Header/__snapshots__/FileMenuSpec.js.snap new file mode 100644 index 000000000..13ecf3f55 --- /dev/null +++ b/web/src/js/__tests__/components/Header/__snapshots__/FileMenuSpec.js.snap @@ -0,0 +1,86 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`FileMenu Component should render correctly 1`] = ` +
+ + mitmproxy + + +
+`; diff --git a/web/src/js/__tests__/components/Header/__snapshots__/FilterDocsSpec.js.snap b/web/src/js/__tests__/components/Header/__snapshots__/FilterDocsSpec.js.snap new file mode 100644 index 000000000..cd0c9ddab --- /dev/null +++ b/web/src/js/__tests__/components/Header/__snapshots__/FilterDocsSpec.js.snap @@ -0,0 +1,7 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`FilterDocs Component should render correctly when fetch success 1`] = ` + +`; diff --git a/web/src/js/__tests__/components/Header/__snapshots__/FilterInputSpec.js.snap b/web/src/js/__tests__/components/Header/__snapshots__/FilterInputSpec.js.snap new file mode 100644 index 000000000..f635f037d --- /dev/null +++ b/web/src/js/__tests__/components/Header/__snapshots__/FilterInputSpec.js.snap @@ -0,0 +1,30 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`FilterDocs Component should render correctly 1`] = ` +
+ + + + +
+`;