Update test/test.ts
Co-authored-by: Pedro Augusto de Paula Barbosa <papb1996@gmail.com>
This commit is contained in:
parent
4f50fb07c0
commit
cf3c14178d
1 changed files with 4 additions and 4 deletions
|
|
@ -642,15 +642,15 @@ test('is.numericString', t => {
|
||||||
test('is.array', t => {
|
test('is.array', t => {
|
||||||
testType(t, 'array', ['emptyArray']);
|
testType(t, 'array', ['emptyArray']);
|
||||||
|
|
||||||
t.true(is.array<number>([1, 2, 3], is.number));
|
t.true(is.array([1, 2, 3], is.number));
|
||||||
t.false(is.array<number>([1, '2', 3], is.number));
|
t.false(is.array([1, '2', 3], is.number));
|
||||||
|
|
||||||
t.notThrows(() => {
|
t.notThrows(() => {
|
||||||
assert.array<number>([1, 2], is.number);
|
assert.array([1, 2], is.number);
|
||||||
});
|
});
|
||||||
|
|
||||||
t.throws(() => {
|
t.throws(() => {
|
||||||
assert.array<number>([1, '2'], is.number);
|
assert.array([1, '2'], is.number);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue