Skip to content

Commit

Permalink
fix test for node 6
Browse files Browse the repository at this point in the history
  • Loading branch information
SimenB committed Dec 18, 2018
1 parent e835860 commit dd8cfe0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions e2e/__tests__/to_throw_error_matching_snapshot.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,8 @@ test('cannot be used with .not', () => {

test('should support rejecting promises', () => {
const filename = 'should-support-rejecting-promises.test.js';
const template = makeTemplate(`test('should support rejecting promises', async () => {
await expect(Promise.reject(new Error('octopus'))).rejects.toThrowErrorMatchingSnapshot();
const template = makeTemplate(`test('should support rejecting promises', () => {
return expect(Promise.reject(new Error('octopus'))).rejects.toThrowErrorMatchingSnapshot();
});
`);

Expand Down

0 comments on commit dd8cfe0

Please sign in to comment.