diff options
author | David Sherret <dsherret@users.noreply.github.com> | 2020-07-14 15:24:17 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-14 15:24:17 -0400 |
commit | cde4dbb35132848ffece59ef9cfaccff32347124 (patch) | |
tree | cc7830968c6decde704c8cfb83c9185193dc698f /cli/tests/unit/resources_test.ts | |
parent | 9eca71caa1674c31f9cc5d4e86c03f10b59e0a00 (diff) |
Use dprint for internal formatting (#6682)
Diffstat (limited to 'cli/tests/unit/resources_test.ts')
-rw-r--r-- | cli/tests/unit/resources_test.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cli/tests/unit/resources_test.ts b/cli/tests/unit/resources_test.ts index e4d420055..5742fd6a0 100644 --- a/cli/tests/unit/resources_test.ts +++ b/cli/tests/unit/resources_test.ts @@ -25,10 +25,10 @@ unitTest({ perms: { net: true } }, async function resourcesNet(): Promise< const res = Deno.resources(); assertEquals( Object.values(res).filter((r): boolean => r === "tcpListener").length, - 1 + 1, ); const tcpStreams = Object.values(res).filter( - (r): boolean => r === "tcpStream" + (r): boolean => r === "tcpStream", ); assert(tcpStreams.length >= 2); @@ -48,7 +48,7 @@ unitTest({ perms: { read: true } }, async function resourcesFile(): Promise< // check that exactly one new resource (file) was added assertEquals( Object.keys(resourcesAfter).length, - Object.keys(resourcesBefore).length + 1 + Object.keys(resourcesBefore).length + 1, ); const newRid = +Object.keys(resourcesAfter).find((rid): boolean => { return !resourcesBefore.hasOwnProperty(rid); |