Skip to content

Commit

Permalink
Fix failing test related to concordance.compare rules
Browse files Browse the repository at this point in the history
  • Loading branch information
arnellebalane committed Jan 28, 2019
1 parent 32e0f52 commit 8de9096
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,19 +39,19 @@ 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],
[4, 5, 6]
], 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);
});

0 comments on commit 8de9096

Please sign in to comment.