@@ -18,6 +18,9 @@ jest.mock('ReactDOM');
1818const getContentEditableContainer = require ( 'getContentEditableContainer' ) ;
1919
2020test ( 'fails if no Node is found for the editorContainer' , ( ) => {
21+ /* $FlowFixMe(>=0.99.0 site=www) This comment suppresses an error found when
22+ * Flow v0.99 was deployed. To see the error delete this comment and run
23+ * Flow. */
2124 require ( 'ReactDOM' ) . findDOMNode . mockImplementation ( ( ) => null ) ;
2225 // $FlowExpectedError
2326 expect ( ( ) => getContentEditableContainer ( { } ) ) . toThrow ( 'Missing editorNode' ) ;
@@ -27,6 +30,9 @@ test('fails if the firstChild of editorConainer is not an HTMLElement', () => {
2730 const editor = { editorContainer : { } } ;
2831 const editableContainer = document . createTextNode ( 'text' ) ;
2932 const editorContainerNode = { firstChild : editableContainer } ;
33+ /* $FlowFixMe(>=0.99.0 site=www) This comment suppresses an error found when
34+ * Flow v0.99 was deployed. To see the error delete this comment and run
35+ * Flow. */
3036 require ( 'ReactDOM' ) . findDOMNode . mockImplementation ( ( ) => editorContainerNode ) ;
3137 // $FlowExpectedError
3238 expect ( ( ) => getContentEditableContainer ( editor ) ) . toThrow (
@@ -38,6 +44,9 @@ test(`returns the firstChild of editor.editorContainer's DOM node`, () => {
3844 const editor = { editorContainer : { } } ;
3945 const editableContainer = document . createElement ( 'div' ) ;
4046 const editorContainerNode = { firstChild : editableContainer } ;
47+ /* $FlowFixMe(>=0.99.0 site=www) This comment suppresses an error found when
48+ * Flow v0.99 was deployed. To see the error delete this comment and run
49+ * Flow. */
4150 require ( 'ReactDOM' ) . findDOMNode . mockImplementation ( ( ) => editorContainerNode ) ;
4251
4352 // $FlowExpectedError
0 commit comments