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/mime/multipart.ts | |
parent | adffbacfe49aac480fc34e78035200ab9602443c (diff) |
refactor(std): remove testing dependencies from non-test code (#5838)
Diffstat (limited to 'std/mime/multipart.ts')
-rw-r--r-- | std/mime/multipart.ts | 6 |
1 files changed, 3 insertions, 3 deletions
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; |