Skip to content

Commit 60b13e7

Browse files
committed
Expect the full context to be captured when delegating from a middle rocket assertion
1 parent d4f47c4 commit 60b13e7

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)