diff options
Diffstat (limited to 'node_modules/atob/test.js')
-rw-r--r-- | node_modules/atob/test.js | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/node_modules/atob/test.js b/node_modules/atob/test.js new file mode 100644 index 0000000..bd80a4e --- /dev/null +++ b/node_modules/atob/test.js @@ -0,0 +1,18 @@ +(function () { + "use strict"; + + var atob = require('.'); + var encoded = "SGVsbG8sIFdvcmxkIQ==" + var unencoded = "Hello, World!"; + /* + , encoded = "SGVsbG8sIBZM" + , unencoded = "Hello, 世界" + */ + + if (unencoded !== atob(encoded)) { + console.log('[FAIL]', unencoded, atob(encoded)); + return; + } + + console.log('[PASS] all tests pass'); +}()); |