Skip to content

Commit

Permalink
test: make sure to return promise from test (#5336)
Browse files Browse the repository at this point in the history
  • Loading branch information
SimenB authored Jan 17, 2018
1 parent a441ecf commit 30a9ca2
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions packages/jest-runtime/src/__tests__/runtime_jest_fn.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ describe('Runtime', () => {
});

describe('jest.clearAllMocks', () => {
it('clears all mocks', () => {
it('clears all mocks', () =>
createRuntime(__filename).then(runtime => {
const root = runtime.requireModule(runtime.__mockRootPath);

Expand All @@ -64,7 +64,6 @@ describe('Runtime', () => {

expect(mock1).not.toBeCalled();
expect(mock2).not.toBeCalled();
});
});
}));
});
});

0 comments on commit 30a9ca2

Please sign in to comment.