aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--web/src/js/__tests__/components/ContentView/CodeEditorSpec.js4
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()
})