explain codemirror rendering shortcomins

This commit is contained in:
Maximilian Hils 2017-06-02 13:26:21 +02:00 committed by GitHub
parent 950810accb
commit 465178323f
1 changed files with 4 additions and 0 deletions

View File

@ -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()
})