1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2025-01-18 03:44:05 -05:00

fix test description for atob (#2232)

This commit is contained in:
迷渡 2019-04-29 00:14:57 +08:00 committed by Ryan Dahl
parent 972ac03858
commit a4551c853e

View file

@ -1,13 +1,13 @@
// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license. // Copyright 2018-2019 the Deno authors. All rights reserved. MIT license.
import { test, assert, assertEquals } from "./test_util.ts"; import { test, assert, assertEquals } from "./test_util.ts";
test(function atobSuccess(): void { test(function btoaSuccess(): void {
const text = "hello world"; const text = "hello world";
const encoded = btoa(text); const encoded = btoa(text);
assertEquals(encoded, "aGVsbG8gd29ybGQ="); assertEquals(encoded, "aGVsbG8gd29ybGQ=");
}); });
test(function btoaSuccess(): void { test(function atobSuccess(): void {
const encoded = "aGVsbG8gd29ybGQ="; const encoded = "aGVsbG8gd29ybGQ=";
const decoded = atob(encoded); const decoded = atob(encoded);
assertEquals(decoded, "hello world"); assertEquals(decoded, "hello world");