Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Updated test

  • Loading branch information...
commit cc3b5ca0e01f692064155ca435fc63353b6d89fd 1 parent 593bf84
@agnoster authored
View
1  .gitignore
@@ -0,0 +1 @@
+node_modules
View
4 bin/base32.js
@@ -1,5 +1,5 @@
#!/usr/bin/env node
-;(function(){
+
var base32 = require('base32')
, fs = require('fs')
, usage = 'Usage: base32 [input_file] [-o output_file] [-d|--decode] [-s|--sha]'
@@ -106,5 +106,3 @@ for (i = 0; i < argv._.length; i++) {
}
stream(input, output, processor)
}
-
-})()
View
10 package.json
@@ -1,7 +1,7 @@
{
"name": "base32",
"description": "Base32 encoding and decoding",
- "version": "0.0.4",
+ "version": "0.0.5",
"author": "Isaac Wolkerstorfer <agnoster@gmail.com> (http://agnoster.net/)",
"homepage": "https://github.com/agnoster/base32-js",
"repository": {
@@ -9,15 +9,11 @@
"url": "git://github.com/agnoster/base32-js.git"
},
"main": "./lib/base32",
- "directories": {
- "lib": "./lib",
- "bin": "./bin"
- },
"scripts": {
- "test": "coffee test/*-test.coffee"
+ "test": "./node_modules/.bin/coffee test/*-test.coffee"
},
"engines": {
- "node": "*"
+ "node": ">0.4"
},
"dependencies": {
"optimist": ">=0.1.0"
View
5 test/base32-test.coffee
@@ -68,10 +68,9 @@ suite = suite.addBatch
'When we hash a file':
topic: ->
- base32.sha1.file('package.json', this.callback)
+ base32.sha1.file('LICENSE', this.callback)
'it should give the right value': (hash) ->
- assert.equal hash, '3k75w7kbm44c6xafaygjw4r587a8kw4j'
+ assert.equal hash, 'za118kbdknm728mwx9r5g9rtv3mw2y4d'
-suite.reporter = require 'vows/reporters/spec'
suite.run()
Please sign in to comment.
Something went wrong with that request. Please try again.