📅  最后修改于: 2022-03-11 15:02:40.344000             🧑  作者: Mango
it('should test async errors', async () => {
await expect(failingAsyncTest())
.rejects
.toThrow('I should fail');
});