deno.land / x / domain@v0.1.0 / mod_test.ts

نووسراو ببینە
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
import { assertEquals, assert,} from "https://deno.land/std@0.64.0/testing/asserts.ts";
import { isValid, getAllDomains, getDomainInfo,} from "./mod.ts";
Deno.test("isValid", (): void => { assert(isValid(".com"));});
Deno.test("getAllDomains should return an array", (): void => { assert(Array.isArray(getAllDomains()));});
Deno.test("getDomainInfo", (): void => { assertEquals(getDomainInfo(".zzzzz"), null); assertEquals(getDomainInfo(".com"), { name: ".com", xn: ".com", type: "generic", manager: "VeriSign Global Registry Services", });});
domain

Version Info

Tagged at
3 years ago

External Dependencies

1 external dependency