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:
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.
|
// 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");
|
||||||
|
|
Loading…
Add table
Reference in a new issue