Comparing version 1.0.0 to 1.0.1
{ | ||
"name" : "atob", | ||
"homepage" : "https://github.com/coolaj86/node-browser-compat", | ||
"description" : "atob for Node.JS (it's a one-liner)", | ||
"repository" : { | ||
"type": "git", | ||
"url": "git://github.com/coolaj86/node-browser-compat.git" | ||
}, | ||
"keywords" : ["atob", "browser"], | ||
"author" : "AJ ONeal <coolaj86@gmail.com> (http://coolaj86.info)", | ||
"engines" : { | ||
"node": ">= 0.4.0" | ||
}, | ||
"dependencies" : { | ||
}, | ||
"main" : "index", | ||
"version" : "1.0.0" | ||
"name": "atob", | ||
"homepage": "https://github.com/coolaj86/node-browser-compat", | ||
"description": "atob for Node.JS and Linux / Mac / Windows CLI (it's a one-liner)", | ||
"repository": { | ||
"type": "git", | ||
"url": "git://github.com/coolaj86/node-browser-compat.git" | ||
}, | ||
"keywords": [ | ||
"atob", | ||
"browser" | ||
], | ||
"author": "AJ ONeal <coolaj86@gmail.com> (http://coolaj86.info)", | ||
"engines": { | ||
"node": ">= 0.4.0" | ||
}, | ||
"main": "index", | ||
"bin": { | ||
"atob": "bin/atob.js" | ||
}, | ||
"version": "1.0.1" | ||
} |
@@ -5,7 +5,8 @@ (function () { | ||
var atob = require('./index') | ||
, expected = "SGVsbG8gV29ybGQ=" | ||
, encoded = "SGVsbG8gV29ybGQ=" | ||
, unencoded = "Hello World" | ||
, result | ||
; | ||
if (expected !== atob("Hello World")) { | ||
if (unencoded !== atob(encoded)) { | ||
return; | ||
@@ -12,0 +13,0 @@ } |
1169
4
27