diff options
Diffstat (limited to 'net')
| -rw-r--r-- | net/bufio_test.ts | 6 | ||||
| -rw-r--r-- | net/file_server_test.ts | 10 | ||||
| -rw-r--r-- | net/http_test.ts | 6 | ||||
| -rw-r--r-- | net/textproto_test.ts | 6 |
4 files changed, 7 insertions, 21 deletions
diff --git a/net/bufio_test.ts b/net/bufio_test.ts index 411f173f4..fa8f4b73b 100644 --- a/net/bufio_test.ts +++ b/net/bufio_test.ts @@ -4,11 +4,7 @@ // license that can be found in the LICENSE file. import { Buffer, Reader, ReadResult } from "deno"; -import { - test, - assert, - assertEqual -} from "../testing/mod.ts"; +import { test, assert, assertEqual } from "../testing/mod.ts"; import { BufReader, BufState, BufWriter } from "./bufio.ts"; import * as iotest from "./iotest.ts"; import { charCode, copyBytes, stringsReader } from "./util.ts"; diff --git a/net/file_server_test.ts b/net/file_server_test.ts index e0abb1cf1..28357c912 100644 --- a/net/file_server_test.ts +++ b/net/file_server_test.ts @@ -1,10 +1,6 @@ import { readFile } from "deno"; -import { - test, - assert, - assertEqual -} from "../testing/mod.ts"; +import { test, assert, assertEqual } from "../testing/mod.ts"; // Promise to completeResolve when all tests completes let completeResolve; @@ -27,7 +23,9 @@ export function runTests(serverReadyPromise: Promise<any>) { assert(res.headers.has("access-control-allow-headers")); assertEqual(res.headers.get("content-type"), "text/yaml"); const downloadedFile = await res.text(); - const localFile = new TextDecoder().decode(await readFile("./azure-pipelines.yml")); + const localFile = new TextDecoder().decode( + await readFile("./azure-pipelines.yml") + ); assertEqual(downloadedFile, localFile); maybeCompleteTests(); }); diff --git a/net/http_test.ts b/net/http_test.ts index 46ea60185..9235feb02 100644 --- a/net/http_test.ts +++ b/net/http_test.ts @@ -6,11 +6,7 @@ // https://github.com/golang/go/blob/master/src/net/http/responsewrite_test.go import { Buffer } from "deno"; -import { - test, - assert, - assertEqual -} from "../testing/mod.ts"; +import { test, assert, assertEqual } from "../testing/mod.ts"; import { listenAndServe, ServerRequest, diff --git a/net/textproto_test.ts b/net/textproto_test.ts index 9fe5e8dd3..e0ae0749c 100644 --- a/net/textproto_test.ts +++ b/net/textproto_test.ts @@ -6,11 +6,7 @@ import { BufReader } from "./bufio.ts"; import { TextProtoReader, append } from "./textproto.ts"; import { stringsReader } from "./util.ts"; -import { - test, - assert, - assertEqual -} from "../testing/mod.ts"; +import { test, assert, assertEqual } from "../testing/mod.ts"; function reader(s: string): TextProtoReader { return new TextProtoReader(new BufReader(stringsReader(s))); |
