diff --git a/deps.ts b/deps.ts index 8dc1b85..69dbe2f 100644 --- a/deps.ts +++ b/deps.ts @@ -1,8 +1,8 @@ export * from "https://deno.land/x/web_bson@v0.3.0/mod.js"; -export { crypto } from "https://deno.land/std@0.154.0/crypto/mod.ts"; -export { BufReader } from "https://deno.land/std@0.154.0/io/mod.ts"; -export { writeAll } from "https://deno.land/std@0.154.0/streams/conversion.ts"; -export { deferred } from "https://deno.land/std@0.154.0/async/deferred.ts"; -export type { Deferred } from "https://deno.land/std@0.154.0/async/deferred.ts"; -export * as b64 from "https://deno.land/std@0.154.0/encoding/base64.ts"; -export * as hex from "https://deno.land/std@0.154.0/encoding/hex.ts"; +export { writeAll } from "https://deno.land/std@0.202.0/streams/write_all.ts"; +export { crypto } from "https://deno.land/std@0.202.0/crypto/mod.ts"; +export { BufReader } from "https://deno.land/std@0.202.0/io/mod.ts"; +export { deferred } from "https://deno.land/std@0.202.0/async/deferred.ts"; +export type { Deferred } from "https://deno.land/std@0.202.0/async/deferred.ts"; +export * as b64 from "https://deno.land/std@0.202.0/encoding/base64.ts"; +export * as hex from "https://deno.land/std@0.202.0/encoding/hex.ts"; diff --git a/tests/cases/06_gridfs.ts b/tests/cases/06_gridfs.ts index bcb69e5..b1056f4 100644 --- a/tests/cases/06_gridfs.ts +++ b/tests/cases/06_gridfs.ts @@ -9,14 +9,10 @@ import { beforeEach, describe, it, - readAll, - readerFromStreamReader, } from "../test.deps.ts"; async function streamReadAll(readable: ReadableStream): Promise { - const reader = readerFromStreamReader(readable.getReader()); - const result = await readAll(reader); - return result; + return new Uint8Array(await new Response(readable).arrayBuffer()); } describe("GridFS", () => { diff --git a/tests/test.deps.ts b/tests/test.deps.ts index f76cef7..72946ce 100644 --- a/tests/test.deps.ts +++ b/tests/test.deps.ts @@ -4,13 +4,9 @@ export { assertNotEquals, assertRejects, assertThrows, -} from "https://deno.land/std@0.201.0/assert/mod.ts"; -export { equals as bytesEquals } from "https://deno.land/std@0.201.0/bytes/equals.ts"; +} from "https://deno.land/std@0.202.0/assert/mod.ts"; +export { equals as bytesEquals } from "https://deno.land/std@0.202.0/bytes/equals.ts"; export * as semver from "https://deno.land/x/semver@v1.4.1/mod.ts"; -export { - readAll, - readerFromStreamReader, -} from "https://deno.land/std@0.201.0/streams/mod.ts"; export { afterAll, afterEach, @@ -18,4 +14,4 @@ export { beforeEach, describe, it, -} from "https://deno.land/std@0.201.0/testing/bdd.ts"; +} from "https://deno.land/std@0.202.0/testing/bdd.ts";