diff options
author | Matthew Shao <me@matshao.com> | 2017-07-22 21:16:16 +0800 |
---|---|---|
committer | Matthew Shao <me@matshao.com> | 2017-07-22 21:16:16 +0800 |
commit | 93cd1562def9e5c760b1b1f6a552440a83bae383 (patch) | |
tree | 0c25b7e78498cde85909b6c60a8c0468595e3083 /web/src/js/__tests__/components/Modal/__snapshots__ | |
parent | a0d14caa897c64c4e41605a1a514ebef5b1a9faf (diff) | |
download | mitmproxy-93cd1562def9e5c760b1b1f6a552440a83bae383.tar.gz mitmproxy-93cd1562def9e5c760b1b1f6a552440a83bae383.tar.bz2 mitmproxy-93cd1562def9e5c760b1b1f6a552440a83bae383.zip |
[web] OptionModal component coverge ++.
Diffstat (limited to 'web/src/js/__tests__/components/Modal/__snapshots__')
-rw-r--r-- | web/src/js/__tests__/components/Modal/__snapshots__/OptionModalSpec.js.snap | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/web/src/js/__tests__/components/Modal/__snapshots__/OptionModalSpec.js.snap b/web/src/js/__tests__/components/Modal/__snapshots__/OptionModalSpec.js.snap new file mode 100644 index 00000000..68f1c9fc --- /dev/null +++ b/web/src/js/__tests__/components/Modal/__snapshots__/OptionModalSpec.js.snap @@ -0,0 +1,61 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`PureOptionDefault Component should handle array 1`] = `null`; + +exports[`PureOptionDefault Component should handle array 2`] = ` +<div + className="small" +> + Default: + <strong> + + [ ] + + </strong> + +</div> +`; + +exports[`PureOptionDefault Component should handle boolean type 1`] = ` +<div + className="small" +> + Default: + <strong> + + false + + </strong> + +</div> +`; + +exports[`PureOptionDefault Component should handle null value 1`] = ` +<div + className="small" +> + Default: + <strong> + + null + + </strong> + +</div> +`; + +exports[`PureOptionDefault Component should handle string 1`] = ` +<div + className="small" +> + Default: + <strong> + + "" + + </strong> + +</div> +`; + +exports[`PureOptionDefault Component should return null when the value is default 1`] = `null`; |