wallet-core/node_modules/atob/test.js

19 lines
362 B
JavaScript
Raw Normal View History

2017-08-14 05:01:11 +02:00
(function () {
"use strict";
2018-09-20 02:56:13 +02:00
var atob = require('.');
var encoded = "SGVsbG8sIFdvcmxkIQ=="
var unencoded = "Hello, World!";
2017-08-14 05:01:11 +02:00
/*
, encoded = "SGVsbG8sIBZM"
, unencoded = "Hello, 世界"
*/
if (unencoded !== atob(encoded)) {
console.log('[FAIL]', unencoded, atob(encoded));
return;
}
console.log('[PASS] all tests pass');
}());