diff options
| author | Vincent LE GOFF <g_n_s@hotmail.fr> | 2019-03-06 22:39:50 +0100 |
|---|---|---|
| committer | Ryan Dahl <ry@tinyclouds.org> | 2019-03-06 16:39:50 -0500 |
| commit | e36edfdb3fd4709358a5f499f13cfe3d53c2b4f7 (patch) | |
| tree | 1baef3f876a5e75288c3ec9056cdb93dd6b5787f /io/writers_test.ts | |
| parent | d29957ad17956016c35a04f5f1f98565e58e8a2e (diff) | |
Testing refactor (denoland/deno_std#240)
Original: https://github.com/denoland/deno_std/commit/e1d5c00279132aa639030c6c6d9b4e308bd4775e
Diffstat (limited to 'io/writers_test.ts')
| -rw-r--r-- | io/writers_test.ts | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/io/writers_test.ts b/io/writers_test.ts index ba4d7ed89..847fc059b 100644 --- a/io/writers_test.ts +++ b/io/writers_test.ts @@ -1,5 +1,6 @@ const { copy } = Deno; -import { assert, test } from "../testing/mod.ts"; +import { test } from "../testing/mod.ts"; +import { assertEq } from "../testing/asserts.ts"; import { StringWriter } from "./writers.ts"; import { StringReader } from "./readers.ts"; import { copyN } from "./ioutil.ts"; @@ -8,7 +9,7 @@ test(async function ioStringWriter() { const w = new StringWriter("base"); const r = new StringReader("0123456789"); await copyN(w, r, 4); - assert.equal(w.toString(), "base0123"); + assertEq(w.toString(), "base0123"); await copy(w, r); - assert.equal(w.toString(), "base0123456789"); + assertEq(w.toString(), "base0123456789"); }); |
