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:
John Knox
2019-07-17 07:15:16 -07:00
committed by Facebook Github Bot
parent 939513e7a6
commit 934bfa97e4

View File

@@ -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);
}