mirror of
https://github.com/denoland/deno.git
synced 2024-12-22 07:14:47 -05:00
fix test description for atob
(#2232)
This commit is contained in:
parent
972ac03858
commit
a4551c853e
1 changed files with 2 additions and 2 deletions
|
@ -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");
|
||||
|
|
Loading…
Reference in a new issue