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("isBoolean (match)", async () => {
false,
];
for (const value of values) {
assertEquals(await validate(value, isBoolean), []);
assertEquals(await validate(value, isBoolean()), []);
}
});
@@ -31,6 +31,6 @@ Deno.test("isBoolean (no match)", async () => {
Symbol(),
];
for (const value of values) {
assertNotEquals(await validate(value, isBoolean), []);
assertNotEquals(await validate(value, isBoolean()), []);
}
});