From 465178323f335ef446760854d4f9a46731397dc1 Mon Sep 17 00:00:00 2001 From: Maximilian Hils Date: Fri, 2 Jun 2017 13:26:21 +0200 Subject: [PATCH] explain codemirror rendering shortcomins --- web/src/js/__tests__/components/ContentView/CodeEditorSpec.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/web/src/js/__tests__/components/ContentView/CodeEditorSpec.js b/web/src/js/__tests__/components/ContentView/CodeEditorSpec.js index 2698f13f9..ba7acf07f 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', () => { ), 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() })