Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit a0c52b0

Browse files
committedApr 26, 2022
Expect the full context to be captured when delegating from a middle rocket assertion
1 parent 66bac36 commit a0c52b0

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed
 

‎test/camelCaseSyntax.spec.js

+5-1
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,11 @@ describe('camel case syntax', () => {
115115
it('should fail', () => {
116116
expect(() =>
117117
expect([1, 2, 3]).whenPassedAsParametersTo(Math.max).toEqual(2)
118-
).toThrow('expected 3 to equal 2');
118+
).toThrow(
119+
'expected [ 1, 2, 3 ]\n' +
120+
'when passed as parameters to function max() { /* native code */ } to equal 2\n' +
121+
' expected 3 to equal 2'
122+
);
119123
});
120124
});
121125

0 commit comments

Comments
 (0)
Please sign in to comment.