diff options
author | Matthew Shao <me@matshao.com> | 2017-06-08 11:13:59 +0800 |
---|---|---|
committer | Matthew Shao <me@matshao.com> | 2017-06-08 11:13:59 +0800 |
commit | 602ab1a687b2f61853f667056ff33c04f881a921 (patch) | |
tree | 4af539395fda8e5f552944d31ea785cac829ce99 /web/src/js/__tests__/components/ContentView/__snapshots__/ContentViewSpec.js.snap | |
parent | 55fd82b8f012a2d9b53ad203184a4503d8963613 (diff) | |
download | mitmproxy-602ab1a687b2f61853f667056ff33c04f881a921.tar.gz mitmproxy-602ab1a687b2f61853f667056ff33c04f881a921.tar.bz2 mitmproxy-602ab1a687b2f61853f667056ff33c04f881a921.zip |
[web] Add tests for js/components/ContentView/ContentView.jsx
Diffstat (limited to 'web/src/js/__tests__/components/ContentView/__snapshots__/ContentViewSpec.js.snap')
-rw-r--r-- | web/src/js/__tests__/components/ContentView/__snapshots__/ContentViewSpec.js.snap | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/web/src/js/__tests__/components/ContentView/__snapshots__/ContentViewSpec.js.snap b/web/src/js/__tests__/components/ContentView/__snapshots__/ContentViewSpec.js.snap new file mode 100644 index 00000000..a4bc06c5 --- /dev/null +++ b/web/src/js/__tests__/components/ContentView/__snapshots__/ContentViewSpec.js.snap @@ -0,0 +1,52 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`Edit Component should render correctly 1`] = ` +<div + className="text-center" +> + <i + className="fa fa-spinner fa-spin" + /> +</div> +`; + +exports[`ViewImage Component should render correctly 1`] = ` +<div + className="flowview-image" +> + <img + alt="preview" + className="img-thumbnail" + src="/flows/d91165be-ca1f-4612-88a9-c0f8696f3e29/response/content" + /> +</div> +`; + +exports[`ViewServer Component should render correctly and connect to state 1`] = ` +<div + className="text-center" +> + <i + className="fa fa-spinner fa-spin" + /> +</div> +`; + +exports[`ViewServer Component should render correctly and connect to state 2`] = ` +<div> + <pre> + <div> + <span + className="k" + > + 1 + </span> + <span + className="v" + > + 1 + </span> + </div> + </pre> +</div> +`; |