Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Updated test

  • Loading branch information...
commit cc3b5ca0e01f692064155ca435fc63353b6d89fd 1 parent 593bf84
Isaac Wolkerstorfer authored
1  .gitignore
... ... @@ -0,0 +1 @@
  1 +node_modules
4 bin/base32.js
... ... @@ -1,5 +1,5 @@
1 1 #!/usr/bin/env node
2   -;(function(){
  2 +
3 3 var base32 = require('base32')
4 4 , fs = require('fs')
5 5 , usage = 'Usage: base32 [input_file] [-o output_file] [-d|--decode] [-s|--sha]'
@@ -106,5 +106,3 @@ for (i = 0; i < argv._.length; i++) {
106 106 }
107 107 stream(input, output, processor)
108 108 }
109   -
110   -})()
10 package.json
... ... @@ -1,7 +1,7 @@
1 1 {
2 2 "name": "base32",
3 3 "description": "Base32 encoding and decoding",
4   - "version": "0.0.4",
  4 + "version": "0.0.5",
5 5 "author": "Isaac Wolkerstorfer <agnoster@gmail.com> (http://agnoster.net/)",
6 6 "homepage": "https://github.com/agnoster/base32-js",
7 7 "repository": {
@@ -9,15 +9,11 @@
9 9 "url": "git://github.com/agnoster/base32-js.git"
10 10 },
11 11 "main": "./lib/base32",
12   - "directories": {
13   - "lib": "./lib",
14   - "bin": "./bin"
15   - },
16 12 "scripts": {
17   - "test": "coffee test/*-test.coffee"
  13 + "test": "./node_modules/.bin/coffee test/*-test.coffee"
18 14 },
19 15 "engines": {
20   - "node": "*"
  16 + "node": ">0.4"
21 17 },
22 18 "dependencies": {
23 19 "optimist": ">=0.1.0"
5 test/base32-test.coffee
@@ -68,10 +68,9 @@ suite = suite.addBatch
68 68
69 69 'When we hash a file':
70 70 topic: ->
71   - base32.sha1.file('package.json', this.callback)
  71 + base32.sha1.file('LICENSE', this.callback)
72 72
73 73 'it should give the right value': (hash) ->
74   - assert.equal hash, '3k75w7kbm44c6xafaygjw4r587a8kw4j'
  74 + assert.equal hash, 'za118kbdknm728mwx9r5g9rtv3mw2y4d'
75 75
76   -suite.reporter = require 'vows/reporters/spec'
77 76 suite.run()

0 comments on commit cc3b5ca

Please sign in to comment.
Something went wrong with that request. Please try again.