From 3ef94c5473ac77366d009c7a7c665f695670f886 Mon Sep 17 00:00:00 2001 From: Chris Knight Date: Sun, 7 Jun 2020 14:20:33 +0100 Subject: refactor(std): remove testing dependencies from non-test code (#5838) --- std/http/_io.ts | 2 +- std/http/cookie.ts | 2 +- std/http/file_server.ts | 2 +- std/http/server.ts | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) (limited to 'std/http') 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, -- cgit v1.2.3