Skip to content
Prev Previous commit
Next Next commit
Replace with type cast to any
  • Loading branch information
pedrottimark committed Jan 28, 2018
commit 1264fb53c8917305f8a7fc268b9d20a35b2ab485
9 changes: 3 additions & 6 deletions packages/diff-sequences/src/__tests__/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@ describe('invalid arg', () => {
describe('length', () => {
test('is not a number', () => {
expect(() => {
// $FlowFixMe: This type is incompatible with the expected param type of
diff('0', 0, isCommon, foundSubsequence);
diff(('0': any), 0, isCommon, foundSubsequence);
}).toThrow(/aLength/);
});
test('Infinity is not a safe integer', () => {
Expand Down Expand Up @@ -51,14 +50,12 @@ describe('invalid arg', () => {
describe('callback', () => {
test('null is not a function', () => {
expect(() => {
// $FlowFixMe: This type is incompatible with the expected param type of
diff(0, 0, null, foundSubsequence);
diff(0, 0, (null: any), foundSubsequence);
}).toThrow(/isCommon/);
});
test('undefined is not a function', () => {
expect(() => {
// $FlowFixMe: This type is incompatible with the expected param type of
diff(0, 0, isCommon, undefined);
diff(0, 0, isCommon, (undefined: any));
}).toThrow(/foundSubsequence/);
});
});
Expand Down