deno fmt
This commit is contained in:
@@ -1,13 +1,16 @@
|
||||
import { isString } from "./string.ts";
|
||||
import { validate } from "../mod.ts";
|
||||
import { assertEquals, assertNotEquals } from "https://deno.land/std@0.53.0/testing/asserts.ts";
|
||||
import {
|
||||
assertEquals,
|
||||
assertNotEquals,
|
||||
} from "https://deno.land/std@0.53.0/testing/asserts.ts";
|
||||
|
||||
Deno.test("isString (match)", async () => {
|
||||
const values = [
|
||||
"",
|
||||
"foo",
|
||||
new String(),
|
||||
new String("bar")
|
||||
new String("bar"),
|
||||
];
|
||||
for (const value of values) {
|
||||
assertEquals([], await validate(value, isString));
|
||||
@@ -25,9 +28,9 @@ Deno.test("isString (no match)", async () => {
|
||||
() => {},
|
||||
function named() {},
|
||||
new Object(),
|
||||
Symbol()
|
||||
Symbol(),
|
||||
];
|
||||
for (const value of values) {
|
||||
assertNotEquals([], await validate(value, isString));
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user