summaryrefslogtreecommitdiff
path: root/cli/js/tests/buffer_test.ts
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2020-04-29 22:38:10 +0200
committerGitHub <noreply@github.com>2020-04-29 22:38:10 +0200
commitd308e8d0c0469419517e05a36ba070633168dc67 (patch)
tree1b9b76c8a443cb781f6c557e964ebae73d64c4bc /cli/js/tests/buffer_test.ts
parentb51c863550cb377f6e720bccf4f1485ed8d97222 (diff)
BREAKING: remove custom implementation of Deno.Buffer.toString() (#4992)
Keep in mind Buffer.toString() still exists, but returns [object Object]. Reason for removal of Buffer.toString() was that it implicitly used TextDecoder with fixed "utf-8" encoding and no way to customize the encoding.
Diffstat (limited to 'cli/js/tests/buffer_test.ts')
-rw-r--r--cli/js/tests/buffer_test.ts1
1 files changed, 0 insertions, 1 deletions
diff --git a/cli/js/tests/buffer_test.ts b/cli/js/tests/buffer_test.ts
index e45bcb976..ac2d7db7b 100644
--- a/cli/js/tests/buffer_test.ts
+++ b/cli/js/tests/buffer_test.ts
@@ -35,7 +35,6 @@ function check(buf: Deno.Buffer, s: string): void {
const decoder = new TextDecoder();
const bytesStr = decoder.decode(bytes);
assertEquals(bytesStr, s);
- assertEquals(buf.length, buf.toString().length);
assertEquals(buf.length, s.length);
}