Skip to content

Commit c03acf0

Browse files
committed
[fix] [tests] Update lodash API
* .contains() -> .includes()
1 parent eda862a commit c03acf0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/random.unit.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@ describe("random.js", function () {
4848
.value()
4949
.sort();
5050

51-
assert.ok(_.contains(results, 0.5));
52-
assert.ok(_.contains(results, 1.0));
51+
assert.ok(_.includes(results, 0.5));
52+
assert.ok(_.includes(results, 1.0));
5353

5454
assert.equal(results[0], 0);
5555
assert.equal(_.last(results), 1.5);

0 commit comments

Comments
 (0)