Better tests

This commit is contained in:
Sebastian Seedorf
2020-05-27 13:02:19 +02:00
parent 9a46e52f93
commit 5fc32d7414
8 changed files with 34 additions and 30 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()), [], String(value));
}
});
@@ -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()), [], String(value));
}
});