Skip to content

Commit

Permalink
test: πŸ’ capture in test that thrown error is not mutated
Browse files Browse the repository at this point in the history
  • Loading branch information
streamich committed Feb 25, 2020
1 parent e4634c4 commit eb4f516
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/plugins/expressions/common/execution/execution.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -630,6 +630,7 @@ describe('Execution', () => {
},
});
expect(node2.debug?.rawError).toBeInstanceOf(Error);
expect(node2.debug?.rawError).toEqual(new Error('foo'));
});

test('sets .debug object to expected shape', async () => {
Expand Down

0 comments on commit eb4f516

Please sign in to comment.