Merge branch 'master' into add-is-gen
This commit is contained in:
commit
bd72dbd1e5
3 changed files with 19 additions and 1 deletions
12
test.js
12
test.js
|
|
@ -287,6 +287,18 @@ test('is.iterable', t => {
|
|||
t.false(m.iterable({}));
|
||||
});
|
||||
|
||||
test('is.class', t => {
|
||||
class Foo {}
|
||||
const classDeclarations = [
|
||||
Foo,
|
||||
class Bar extends Foo {}
|
||||
];
|
||||
|
||||
for (const x of classDeclarations) {
|
||||
t.true(m.class(x));
|
||||
}
|
||||
});
|
||||
|
||||
test('is.typedArray', t => {
|
||||
const typedArrays = [
|
||||
new Int8Array(),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue