diff options
author | Asher Gomez <ashersaupingomez@gmail.com> | 2024-09-04 18:54:50 +1000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-04 08:54:50 +0000 |
commit | 7e11dbb3ac6b3622fc032f1342406603f7a2a9d6 (patch) | |
tree | 4f775cdc6490633443f5a46703e2bda377420569 /tests/unit | |
parent | 3d36cbd056292e0a89d282fa84b7198ae38be4cc (diff) |
BEAKING(buffer): remove `Deno.readAll[Sync]()` (#25386)
Towards #22079
Signed-off-by: Asher Gomez <ashersaupingomez@gmail.com>
Diffstat (limited to 'tests/unit')
-rw-r--r-- | tests/unit/buffer_test.ts | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/tests/unit/buffer_test.ts b/tests/unit/buffer_test.ts index 5b788a45c..fcbeb4bc9 100644 --- a/tests/unit/buffer_test.ts +++ b/tests/unit/buffer_test.ts @@ -354,28 +354,6 @@ Deno.test({ ignore: DENO_FUTURE }, async function bufferTestGrow() { } }); -Deno.test({ ignore: DENO_FUTURE }, async function testReadAll() { - init(); - assert(testBytes); - const reader = new Deno.Buffer(testBytes.buffer as ArrayBuffer); - const actualBytes = await Deno.readAll(reader); - assertEquals(testBytes.byteLength, actualBytes.byteLength); - for (let i = 0; i < testBytes.length; ++i) { - assertEquals(testBytes[i], actualBytes[i]); - } -}); - -Deno.test({ ignore: DENO_FUTURE }, function testReadAllSync() { - init(); - assert(testBytes); - const reader = new Deno.Buffer(testBytes.buffer as ArrayBuffer); - const actualBytes = Deno.readAllSync(reader); - assertEquals(testBytes.byteLength, actualBytes.byteLength); - for (let i = 0; i < testBytes.length; ++i) { - assertEquals(testBytes[i], actualBytes[i]); - } -}); - Deno.test({ ignore: DENO_FUTURE }, function testBufferBytesArrayBufferLength() { // defaults to copy const args = [{}, { copy: undefined }, undefined, { copy: true }]; |