summaryrefslogtreecommitdiff
path: root/tests/unit/buffer_test.ts
diff options
context:
space:
mode:
authorAsher Gomez <ashersaupingomez@gmail.com>2024-09-04 17:16:48 +1000
committerGitHub <noreply@github.com>2024-09-04 17:16:48 +1000
commit072bf5d379b691c4decd3c167a51801bad8ca2f6 (patch)
tree0e32d1d2cc82f2ed5f4f3cc5b00b0011bd3037f5 /tests/unit/buffer_test.ts
parentce6b6751028bfe08b49628a30e660ff479eded02 (diff)
BREAKING(buffer): remove `Deno.writeAll[Sync]()` (#25407)
Diffstat (limited to 'tests/unit/buffer_test.ts')
-rw-r--r--tests/unit/buffer_test.ts24
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 }];