Fix type in test
Summary: fail isn't a thing Reviewed By: passy Differential Revision: D16335797 fbshipit-source-id: c2f07b722424f540e6eb1a4cd423397ec1fe545c
This commit is contained in:
committed by
Facebook Github Bot
parent
939513e7a6
commit
934bfa97e4
@@ -17,8 +17,7 @@ test('Idler should interrupt', async () => {
|
||||
}
|
||||
await idler.idle();
|
||||
}
|
||||
// $FlowFixMe T47375728
|
||||
fail('Idler should have thrown an error');
|
||||
expect('error').toBe('thrown');
|
||||
} catch (e) {
|
||||
expect(i).toEqual(100);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user