diff options
author | Maximilian Hils <git@maximilianhils.com> | 2017-06-02 13:26:21 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-06-02 13:26:21 +0200 |
commit | 465178323f335ef446760854d4f9a46731397dc1 (patch) | |
tree | df3cf924dfd42bde685d04804da4a7f9b9e188c9 /web/src/js/__tests__/components/ContentView | |
parent | 950810accbc3523316017b579c10b4e25ad0ce6d (diff) | |
download | mitmproxy-465178323f335ef446760854d4f9a46731397dc1.tar.gz mitmproxy-465178323f335ef446760854d4f9a46731397dc1.tar.bz2 mitmproxy-465178323f335ef446760854d4f9a46731397dc1.zip |
explain codemirror rendering shortcomins
Diffstat (limited to 'web/src/js/__tests__/components/ContentView')
-rw-r--r-- | web/src/js/__tests__/components/ContentView/CodeEditorSpec.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/web/src/js/__tests__/components/ContentView/CodeEditorSpec.js b/web/src/js/__tests__/components/ContentView/CodeEditorSpec.js index 2698f13f..ba7acf07 100644 --- a/web/src/js/__tests__/components/ContentView/CodeEditorSpec.js +++ b/web/src/js/__tests__/components/ContentView/CodeEditorSpec.js @@ -10,7 +10,11 @@ describe('CodeEditor Component', () => { <CodeEditor content={content} onChange={changeFn}/> ), tree = codeEditor.toJSON() + it('should render correctly', () => { + // This actually does not render properly, but getting a full CodeMirror rendering + // is cumbersome. This is hopefully good enough. + // see: https://github.com/mitmproxy/mitmproxy/pull/2365#discussion_r119766850 expect(tree).toMatchSnapshot() }) |