Commit b508b159 authored by Phil Hughes's avatar Phil Hughes

dont log any errors with event listeners in tests

parent 6dfbcbf7
...@@ -131,6 +131,10 @@ export default class Editor { ...@@ -131,6 +131,10 @@ export default class Editor {
this.instance = null; this.instance = null;
} catch (e) { } catch (e) {
this.instance = null; this.instance = null;
if (process.env.NODE_ENV !== 'test') {
console.error(e);
}
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment