Skip to content

Commit

Permalink
Use deepLooseEqual to avoid having to recreate view exactly
Browse files Browse the repository at this point in the history
Tape 5.0.0 introduces specific strict/loose comparisons for `deepEqual`
and similar methods:
https://github.com/substack/tape#tdeeplooseequalactual-expected-msg

See tape-testing/tape#495 for the original
discussion
  • Loading branch information
orangejulius authored and blackmad committed Aug 4, 2020
1 parent 7c82bfa commit 2e76be5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/unit/query/view/max_character_count_layer_filter.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ module.exports.tests.view_within_range = function(test, common) {
}
};

t.deepEquals(actual, expected, 'view_within_range');
t.deepLooseEqual(actual, expected, 'view_within_range');
t.end();
});
};
Expand Down Expand Up @@ -103,7 +103,7 @@ module.exports.tests.view_clamp_range_low = function(test, common) {
layer: { $: _.difference(allLayers, ['address']) }
}
};
t.deepEquals(actual, expected, 'view_clamp_range_low');
t.deepLooseEqual(actual, expected, 'view_clamp_range_low');
t.end();
});
};
Expand All @@ -115,4 +115,4 @@ module.exports.all = function (tape, common) {
for( let testCase in module.exports.tests ){
module.exports.tests[testCase](test, common);
}
};
};

0 comments on commit 2e76be5

Please sign in to comment.