wallet-core/node_modules/atob/test.js

21 lines
478 B
JavaScript
Raw Normal View History

2017-08-14 05:01:11 +02:00
/*jshint strict:true node:true es5:true onevar:true laxcomma:true laxbreak:true eqeqeq:true immed:true latedef:true*/
(function () {
"use strict";
var atob = require('.')
, encoded = "SGVsbG8gV29ybGQ="
, unencoded = "Hello World"
/*
, encoded = "SGVsbG8sIBZM"
, unencoded = "Hello, 世界"
*/
;
if (unencoded !== atob(encoded)) {
console.log('[FAIL]', unencoded, atob(encoded));
return;
}
console.log('[PASS] all tests pass');
}());