btoa.js/test.js

16 lines
251 B
JavaScript
Raw Normal View History

2011-09-09 20:56:22 +00:00
(function () {
"use strict";
var btoa = require('./index')
, encoded = "SGVsbG8gV29ybGQ="
, unencoded = "Hello World"
, result
;
if (encoded !== btoa(unencoded)) {
return;
}
console.log('[PASS] all tests pass');
}());