chore: fix flow config

This commit is contained in:
Justin Starry 2020-06-18 15:31:01 +08:00 committed by Justin Starry
parent df7e40f0bd
commit 7ad96e833b
2 changed files with 1 additions and 4 deletions

View File

@ -14,6 +14,3 @@ module.system.node.resolve_dirname=./src
module.use_strict=true
experimental.const_params=true
include_warnings=true
suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe
suppress_comment=\\(.\\|\n\\)*\\$FlowIssue
suppress_comment=\\(.\\|\n\\)*\\$FlowIgnore

View File

@ -3,7 +3,7 @@ import {clusterApiUrl} from '../src/util/cluster';
test('invalid', () => {
expect(() => {
// $FlowIgnore
// $FlowExpectedError
clusterApiUrl('abc123');
}).toThrow();
});