Change assert.array implementation

This commit is contained in:
Alex 2020-07-18 19:14:21 +03:00
parent 67ab8ca570
commit 5a69c2af78
2 changed files with 10 additions and 3 deletions

View file

@ -646,11 +646,11 @@ test('is.array', t => {
t.false(is.array([1, '2', 3], is.number));
t.notThrows(() => {
assert.array([1, 2], is.number);
assert.array([1, 2], assert.number);
});
t.throws(() => {
assert.array([1, '2'], is.number);
assert.array([1, '2'], assert.number);
});
});