Added a very complicated AsyncIterableReader class.
The class was already implemented in "https://deno.land/std@0.144.0/streams/conversion.ts". So, I litterally lost 1 day of work! I hate myself.
This commit is contained in:
1 parent
17a1b4bed3
commit
0d627c9051
125 files changed
+26943
-83
No files matched your search
@@ -23,7 +23,7 @@ Deno.test("DenoKVBlobService happy path", async (t) => {
|
||||
|
||||
await t.step("read write small text", async () => {
|
||||
const size = await bs.persistBlob("0002", toUint8Array("hello world"));
|
||||
const body = await bs.getBlob("0002");
|
||||
const body = await bs.readAllBlob("0002");
|
||||
assertEquals(body, toUint8Array("hello world"));
|
||||
assertEquals(await bs.getNumberOfBlobs("0002"), 1);
|
||||
assertEquals(size, "hello world".length);
|
||||
@@ -32,7 +32,7 @@ Deno.test("DenoKVBlobService happy path", async (t) => {
|
||||
await t.step("read write large text", async () => {
|
||||
const largeText = toUint8Array(generateLargeText(33, 100));
|
||||
const size = await bs.persistBlob("0001", largeText);
|
||||
const body = await bs.getBlob("0001");
|
||||
const body = await bs.readAllBlob("0001");
|
||||
assertEquals(body, largeText);
|
||||
assertEquals(await bs.getNumberOfBlobs("0001"), 21);
|
||||
assertEquals(size, largeText.length);
|
||||
|
||||
Reference in new issue
Block a user