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/mime/multipart.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'std/mime') diff --git a/std/mime/multipart.ts b/std/mime/multipart.ts index 5d9ee7cf9..73a6544b5 100644 --- a/std/mime/multipart.ts +++ b/std/mime/multipart.ts @@ -12,7 +12,7 @@ import { extname } from "../path/mod.ts"; import { tempFile } from "../io/util.ts"; import { BufReader, BufWriter } from "../io/bufio.ts"; import { encoder } from "../encoding/utf8.ts"; -import { assertStrictEquals, assert } from "../testing/asserts.ts"; +import { assert } from "../_util/assert.ts"; import { TextProtoReader } from "../textproto/mod.ts"; import { hasOwnProperty } from "../_util/has_own_property.ts"; @@ -178,7 +178,7 @@ class PartReader implements Reader, Closer { ); if (this.n === 0) { // Force buffered I/O to read more into buffer. - assertStrictEquals(eof, false); + assert(eof === false); peekLength++; } } @@ -190,7 +190,7 @@ class PartReader implements Reader, Closer { const nread = min(p.length, this.n); const buf = p.subarray(0, nread); const r = await br.readFull(buf); - assertStrictEquals(r, buf); + assert(r === buf); this.n -= nread; this.total += nread; return nread; -- cgit v1.2.3