From 2e31209ecbe74b8974c121ac11b6e22b0f271e82 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Slobodan=20Mi=C5=A1kovi=C4=87?= Date: Sun, 4 Sep 2016 21:56:51 -0700 Subject: [PATCH] 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 --- chai-immutable.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/chai-immutable.js b/chai-immutable.js index 72351ac..eb85b79 100644 --- a/chai-immutable.js +++ b/chai-immutable.js @@ -105,8 +105,8 @@ Immutable.is(obj, collection), 'expected #{act} to equal #{exp}', 'expected #{act} to not equal #{exp}', - collection.toString(), - obj.toString(), + collection.toJS(), + obj.toJS(), true ); }