From 8de9096556d4107dbb0c3b1edcf0d77dce0a0d75 Mon Sep 17 00:00:00 2001 From: Arnelle Balane Date: Mon, 28 Jan 2019 23:16:42 +0800 Subject: [PATCH] Fix failing test related to concordance.compare rules --- tests.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/tests.js b/tests.js index e2e047c..316bbff 100644 --- a/tests.js +++ b/tests.js @@ -39,11 +39,6 @@ test('built-in methods return proxied instances', t => { t.deepEqual([...doubled], [10, 12, 14]); }); -test('non-function properties return the correct values', t => { - const proxied = rbjs([1, 2, 3, 4, 5]); - t.is(proxied.length, 5); -}); - test('custom methods are chainable', t => { const proxied = rbjs([ [1, 2, 3], @@ -51,7 +46,12 @@ test('custom methods are chainable', t => { ], 4); const result = proxied.assoc(4); - t.deepEqual(result, [4, 5, 6]); + t.deepEqual([...result], [4, 5, 6]); t.true('any' in result); t.notThrows(() => result.any(Boolean)); }); + +test('non-function properties return the correct values', t => { + const proxied = rbjs([1, 2, 3, 4, 5]); + t.is(proxied.length, 5); +});