diff options
author | Asher Gomez <ashersaupingomez@gmail.com> | 2024-09-04 17:16:48 +1000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-04 17:16:48 +1000 |
commit | 072bf5d379b691c4decd3c167a51801bad8ca2f6 (patch) | |
tree | 0e32d1d2cc82f2ed5f4f3cc5b00b0011bd3037f5 /tests/unit/buffer_test.ts | |
parent | ce6b6751028bfe08b49628a30e660ff479eded02 (diff) |
BREAKING(buffer): remove `Deno.writeAll[Sync]()` (#25407)
Diffstat (limited to 'tests/unit/buffer_test.ts')
-rw-r--r-- | tests/unit/buffer_test.ts | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/tests/unit/buffer_test.ts b/tests/unit/buffer_test.ts index 2295aa5ae..5b788a45c 100644 --- a/tests/unit/buffer_test.ts +++ b/tests/unit/buffer_test.ts @@ -376,30 +376,6 @@ Deno.test({ ignore: DENO_FUTURE }, function testReadAllSync() { } }); -Deno.test({ ignore: DENO_FUTURE }, async function testWriteAll() { - init(); - assert(testBytes); - const writer = new Deno.Buffer(); - await Deno.writeAll(writer, testBytes); - const actualBytes = writer.bytes(); - assertEquals(testBytes.byteLength, actualBytes.byteLength); - for (let i = 0; i < testBytes.length; ++i) { - assertEquals(testBytes[i], actualBytes[i]); - } -}); - -Deno.test({ ignore: DENO_FUTURE }, function testWriteAllSync() { - init(); - assert(testBytes); - const writer = new Deno.Buffer(); - Deno.writeAllSync(writer, testBytes); - const actualBytes = writer.bytes(); - 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 }]; |