diff options
author | Matthew Shao <me@matshao.com> | 2017-05-30 21:31:08 +0800 |
---|---|---|
committer | Matthew Shao <me@matshao.com> | 2017-05-30 21:31:08 +0800 |
commit | 248dde26043560482a5b69b701df4d3814b9896b (patch) | |
tree | 354213688ae0cf787759d22bd1ba202a6b48dce0 /web/src/js/__tests__/components/FlowView/__snapshots__ | |
parent | f2e8e57e1c0cffadc2ed1f2d36e75b03b279b930 (diff) | |
download | mitmproxy-248dde26043560482a5b69b701df4d3814b9896b.tar.gz mitmproxy-248dde26043560482a5b69b701df4d3814b9896b.tar.bz2 mitmproxy-248dde26043560482a5b69b701df4d3814b9896b.zip |
[web] Add tests for js/components/FlowView/Header.jsx
Diffstat (limited to 'web/src/js/__tests__/components/FlowView/__snapshots__')
-rw-r--r-- | web/src/js/__tests__/components/FlowView/__snapshots__/HeadersSpec.js.snap | 128 |
1 files changed, 128 insertions, 0 deletions
diff --git a/web/src/js/__tests__/components/FlowView/__snapshots__/HeadersSpec.js.snap b/web/src/js/__tests__/components/FlowView/__snapshots__/HeadersSpec.js.snap new file mode 100644 index 00000000..5b5374dd --- /dev/null +++ b/web/src/js/__tests__/components/FlowView/__snapshots__/HeadersSpec.js.snap @@ -0,0 +1,128 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`HeaderEditor Component should render correctly 1`] = ` +<div + className="inline-input editable" + contentEditable={undefined} + dangerouslySetInnerHTML={ + Object { + "__html": "foo", + } + } + onBlur={[Function]} + onClick={[Function]} + onFocus={[Function]} + onInput={[Function]} + onKeyDown={[Function]} + onMouseDown={[Function]} + onPaste={[Function]} + tabIndex={0} +/> +`; + +exports[`Headers Component should handle correctly 1`] = ` +<table + className="header-table" +> + <tbody> + <tr> + <td + className="header-name" + > + <div + className="inline-input editable" + contentEditable={undefined} + dangerouslySetInnerHTML={ + Object { + "__html": "k1", + } + } + onBlur={[Function]} + onClick={[Function]} + onFocus={[Function]} + onInput={[Function]} + onKeyDown={[Function]} + onMouseDown={[Function]} + onPaste={[Function]} + tabIndex={0} + /> + <span + className="header-colon" + > + : + </span> + </td> + <td + className="header-value" + > + <div + className="inline-input editable" + contentEditable={undefined} + dangerouslySetInnerHTML={ + Object { + "__html": "v1", + } + } + onBlur={[Function]} + onClick={[Function]} + onFocus={[Function]} + onInput={[Function]} + onKeyDown={[Function]} + onMouseDown={[Function]} + onPaste={[Function]} + tabIndex={0} + /> + </td> + </tr> + <tr> + <td + className="header-name" + > + <div + className="inline-input editable" + contentEditable={undefined} + dangerouslySetInnerHTML={ + Object { + "__html": "k2", + } + } + onBlur={[Function]} + onClick={[Function]} + onFocus={[Function]} + onInput={[Function]} + onKeyDown={[Function]} + onMouseDown={[Function]} + onPaste={[Function]} + tabIndex={0} + /> + <span + className="header-colon" + > + : + </span> + </td> + <td + className="header-value" + > + <div + className="inline-input editable" + contentEditable={undefined} + dangerouslySetInnerHTML={ + Object { + "__html": "", + } + } + onBlur={[Function]} + onClick={[Function]} + onFocus={[Function]} + onInput={[Function]} + onKeyDown={[Function]} + onMouseDown={[Function]} + onPaste={[Function]} + tabIndex={0} + /> + </td> + </tr> + </tbody> +</table> +`; |