Last change
on this file since 8d391a1 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
362 bytes
|
Line | |
---|
1 | (function () {
|
---|
2 | "use strict";
|
---|
3 |
|
---|
4 | var atob = require('.');
|
---|
5 | var encoded = "SGVsbG8sIFdvcmxkIQ=="
|
---|
6 | var unencoded = "Hello, World!";
|
---|
7 | /*
|
---|
8 | , encoded = "SGVsbG8sIBZM"
|
---|
9 | , unencoded = "Hello, 世界"
|
---|
10 | */
|
---|
11 |
|
---|
12 | if (unencoded !== atob(encoded)) {
|
---|
13 | console.log('[FAIL]', unencoded, atob(encoded));
|
---|
14 | return;
|
---|
15 | }
|
---|
16 |
|
---|
17 | console.log('[PASS] all tests pass');
|
---|
18 | }());
|
---|
Note:
See
TracBrowser
for help on using the repository browser.