Skip to content

Commit

Permalink
Expect the full context to be captured when delegating from a middle …
Browse files Browse the repository at this point in the history
…rocket assertion
  • Loading branch information
papandreou committed Apr 26, 2022
1 parent 66bac36 commit a0c52b0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion test/camelCaseSyntax.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,11 @@ describe('camel case syntax', () => {
it('should fail', () => {
expect(() =>
expect([1, 2, 3]).whenPassedAsParametersTo(Math.max).toEqual(2)
).toThrow('expected 3 to equal 2');
).toThrow(
'expected [ 1, 2, 3 ]\n' +
'when passed as parameters to function max() { /* native code */ } to equal 2\n' +
' expected 3 to equal 2'
);
});
});

Expand Down

0 comments on commit a0c52b0

Please sign in to comment.