diff options
author | Matthew Shao <me@matshao.com> | 2017-06-05 10:22:19 +0800 |
---|---|---|
committer | Matthew Shao <me@matshao.com> | 2017-06-05 10:22:19 +0800 |
commit | bff23275c32fa109e1bee09a819dad87789fdf24 (patch) | |
tree | e22f325df8ccb0ea3938b6f1bca6c4d1b6de9253 /web/src/js/__tests__/components/ContentView/__snapshots__ | |
parent | 298ac8391e86999c00804b2ed891ab8b7d4a6e39 (diff) | |
download | mitmproxy-bff23275c32fa109e1bee09a819dad87789fdf24.tar.gz mitmproxy-bff23275c32fa109e1bee09a819dad87789fdf24.tar.bz2 mitmproxy-bff23275c32fa109e1bee09a819dad87789fdf24.zip |
[web] Add tests for js/components/ContentView/ShowFullContentButton.jsx
Diffstat (limited to 'web/src/js/__tests__/components/ContentView/__snapshots__')
-rw-r--r-- | web/src/js/__tests__/components/ContentView/__snapshots__/ShowFullContentButtonSpec.js.snap | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/web/src/js/__tests__/components/ContentView/__snapshots__/ShowFullContentButtonSpec.js.snap b/web/src/js/__tests__/components/ContentView/__snapshots__/ShowFullContentButtonSpec.js.snap new file mode 100644 index 00000000..e0532154 --- /dev/null +++ b/web/src/js/__tests__/components/ContentView/__snapshots__/ShowFullContentButtonSpec.js.snap @@ -0,0 +1,25 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`ShowFullContentButton Component should connect to state 1`] = `null`; + +exports[`ShowFullContentButton Component should render correctly 1`] = ` +<div> + <div + className="view-all-content-btn btn-xs btn btn-default" + disabled={undefined} + onClick={[Function]} + title={undefined} + > + Show full content + </div> + <span + className="pull-right" + > + + 10 + / + 20 + are visible + </span> +</div> +`; |