Skip to content

Commit

Permalink
update test
Browse files Browse the repository at this point in the history
  • Loading branch information
Mario T. Lanza committed Jun 3, 2024
1 parent d8f46d8 commit c1cd95f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,11 +102,11 @@ test("hashing", function({assert, same, equals, notEquals}){
//same([{blackwidow: "Avenger"}, _.date(774), [1, 2]], [{blackwidow: "Avenger"}, _.date(774), [1, 2]]);
}, {
tests: function(tests){ //add custom test
const {equals, assert} = tests;
const {eq, equals, assert} = tests;
function same(x, y, re = null){
equals(_.hash(x), _.hash(y), re);
equals(_.hash(x), _.hash(x), re);
assert(_.equiv(x, y), re);
eq(x, y, re);
}
return {same, ...tests};
}
Expand Down

0 comments on commit c1cd95f

Please sign in to comment.