Changed to constructor functions

This commit is contained in:
Sebastian Seedorf
2020-05-26 19:40:41 +02:00
parent 9fa06685ba
commit 836b1449bf
15 changed files with 281 additions and 168 deletions

View File

@@ -13,7 +13,7 @@ Deno.test("isArray (match)", async () => {
["foo"],
];
for (const value of values) {
assertEquals(await validate(value, isArray), []);
assertEquals(await validate(value, isArray()), []);
}
});
@@ -33,6 +33,6 @@ Deno.test("isArray (no match)", async () => {
Symbol(),
];
for (const value of values) {
assertNotEquals(await validate(value, isArray), []);
assertNotEquals(await validate(value, isArray()), []);
}
});