Fix using is.array in is.all (#125)

This commit is contained in:
Arnovsky 2020-08-21 15:18:34 -07:00 committed by GitHub
parent 5feadcb0b8
commit d8ced89efe
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View file

@ -1537,6 +1537,8 @@ test('is.all', t => {
t.false(is.all(is.string, '🦄', []));
t.false(is.all(is.set, new Map(), {}));
t.true(is.all(is.array, ...[['1'], ['2']]));
t.throws(() => {
is.all(null as any, true);
});