diff options
author | 迷渡 <justjavac@gmail.com> | 2019-04-29 00:14:57 +0800 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2019-04-28 09:14:57 -0700 |
commit | a4551c853e25a08ea479c5b75f60dc4109eee72f (patch) | |
tree | 7e43b5ee8bdf6718ff3fe3bf5b9ae68a2afbccc0 /js/text_encoding_test.ts | |
parent | 972ac03858cc11e8b6bb759ee69640d17235580d (diff) |
fix test description for `atob` (#2232)
Diffstat (limited to 'js/text_encoding_test.ts')
-rw-r--r-- | js/text_encoding_test.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/js/text_encoding_test.ts b/js/text_encoding_test.ts index f015a9452..30a75f8d4 100644 --- a/js/text_encoding_test.ts +++ b/js/text_encoding_test.ts @@ -1,13 +1,13 @@ // Copyright 2018-2019 the Deno authors. All rights reserved. MIT license. import { test, assert, assertEquals } from "./test_util.ts"; -test(function atobSuccess(): void { +test(function btoaSuccess(): void { const text = "hello world"; const encoded = btoa(text); assertEquals(encoded, "aGVsbG8gd29ybGQ="); }); -test(function btoaSuccess(): void { +test(function atobSuccess(): void { const encoded = "aGVsbG8gd29ybGQ="; const decoded = atob(encoded); assertEquals(decoded, "hello world"); |