Skip to content

Commit c3a0726

Browse files
samwgoldmanmmissey
authored andcommitted
Deploy Flow v0.99.0 to www
Reviewed By: panagosg7 Differential Revision: D15486708 fbshipit-source-id: f0717e6fbdea8845553926f462f12b54698817fc
1 parent ab74074 commit c3a0726

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

src/component/contents/__tests__/DraftEditorTextNode-test.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,16 @@ const renderIntoContainer = element => {
3434
};
3535

3636
const initializeAsIE = () => {
37+
/* $FlowFixMe(>=0.99.0 site=www) This comment suppresses an error found when
38+
* Flow v0.47 was deployed. To see the error delete this comment and run
39+
* Flow. */
3740
UserAgent.isBrowser.mockImplementation(() => true);
3841
};
3942

4043
const initializeAsNonIE = () => {
44+
/* $FlowFixMe(>=0.99.0 site=www) This comment suppresses an error found when
45+
* Flow v0.47 was deployed. To see the error delete this comment and run
46+
* Flow. */
4147
UserAgent.isBrowser.mockImplementation(() => false);
4248
};
4349

src/component/utils/__tests__/getContentEditableContainer-test.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ jest.mock('ReactDOM');
1818
const getContentEditableContainer = require('getContentEditableContainer');
1919

2020
test('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

Comments
 (0)