diff options
author | Chris Knight <cknight1234@gmail.com> | 2020-06-07 14:20:33 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-07 09:20:33 -0400 |
commit | 3ef94c5473ac77366d009c7a7c665f695670f886 (patch) | |
tree | 0baa502ca705e9e0a38e013def65f1ab545e643b /std/http | |
parent | adffbacfe49aac480fc34e78035200ab9602443c (diff) |
refactor(std): remove testing dependencies from non-test code (#5838)
Diffstat (limited to 'std/http')
-rw-r--r-- | std/http/_io.ts | 2 | ||||
-rw-r--r-- | std/http/cookie.ts | 2 | ||||
-rwxr-xr-x | std/http/file_server.ts | 2 | ||||
-rw-r--r-- | std/http/server.ts | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/std/http/_io.ts b/std/http/_io.ts index 82954ccee..1db0fc292 100644 --- a/std/http/_io.ts +++ b/std/http/_io.ts @@ -1,6 +1,6 @@ import { BufReader, BufWriter } from "../io/bufio.ts"; import { TextProtoReader } from "../textproto/mod.ts"; -import { assert } from "../testing/asserts.ts"; +import { assert } from "../_util/assert.ts"; import { encoder } from "../encoding/utf8.ts"; import { ServerRequest, Response } from "./server.ts"; import { STATUS_TEXT } from "./http_status.ts"; diff --git a/std/http/cookie.ts b/std/http/cookie.ts index a138eb350..88a71626c 100644 --- a/std/http/cookie.ts +++ b/std/http/cookie.ts @@ -2,7 +2,7 @@ // Structured similarly to Go's cookie.go // https://github.com/golang/go/blob/master/src/net/http/cookie.go import { ServerRequest, Response } from "./server.ts"; -import { assert } from "../testing/asserts.ts"; +import { assert } from "../_util/assert.ts"; import { toIMF } from "../datetime/mod.ts"; export interface Cookies { diff --git a/std/http/file_server.ts b/std/http/file_server.ts index 7614c3ab2..66babfd57 100755 --- a/std/http/file_server.ts +++ b/std/http/file_server.ts @@ -10,7 +10,7 @@ const { args, stat, readDir, open, exit } = Deno; import { posix, extname } from "../path/mod.ts"; import { listenAndServe, ServerRequest, Response } from "./server.ts"; import { parse } from "../flags/mod.ts"; -import { assert } from "../testing/asserts.ts"; +import { assert } from "../_util/assert.ts"; interface EntryInfo { mode: string; diff --git a/std/http/server.ts b/std/http/server.ts index faf5da6af..3cc95a9e4 100644 --- a/std/http/server.ts +++ b/std/http/server.ts @@ -1,7 +1,7 @@ // Copyright 2018-2020 the Deno authors. All rights reserved. MIT license. import { encode } from "../encoding/utf8.ts"; import { BufReader, BufWriter } from "../io/bufio.ts"; -import { assert } from "../testing/asserts.ts"; +import { assert } from "../_util/assert.ts"; import { deferred, Deferred, MuxAsyncIterator } from "../async/mod.ts"; import { bodyReader, |