Skip to content

Commit 2e31209

Browse files
authored
Better diff output when comparing
This shows a better diff of which keys are extra/missing rather than getting big strings dumped on the user
1 parent 954d347 commit 2e31209

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

chai-immutable.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -105,8 +105,8 @@
105105
Immutable.is(obj, collection),
106106
'expected #{act} to equal #{exp}',
107107
'expected #{act} to not equal #{exp}',
108-
collection.toString(),
109-
obj.toString(),
108+
collection.toJS(),
109+
obj.toJS(),
110110
true
111111
);
112112
}

0 commit comments

Comments
 (0)