Skip to content

Commit

Permalink
Update package.json with repo and bug; Convert script to mocha and co…
Browse files Browse the repository at this point in the history
…ffee
  • Loading branch information
wdavidw committed Feb 17, 2012
1 parent 52117ad commit 91c41fd
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 17 deletions.
37 changes: 29 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,30 @@
{ "name": "http-status"
, "version": "0.1.1"
, "description": "Interact with HTTP status code"
, "author": "David Worms <david@adaltas.com>"
, "contributors": [{"name": "Daniel Gasienica", "email": "daniel@gasienica.ch"}]
, "devDependencies": { "coffee-script": "1.x" }
, "main": "./lib/index"
, "engines": { "node": ">= 0.1.90" }
{
"name": "http-status",
"description": "Interact with HTTP status code",
"keywords": ["http", "express", "connect"],
"version": "0.1.1",
"homepage": "http://www.adaltas.com/projects/node-http-status.html",
"author": "David Worms <david@adaltas.com>",
"repository": {
"type": "git",
"url": "https://github.com/wdavidw/node-http-status"
},
"bugs": {
"email": "open@adaltas.com",
"url": "http://github.com/wdavidw/node-http-status/issues"
},
"devDependencies": {
"coffee-script": "latest",
"mocha": "latest",
"should": "latest"
},
"contributors": [
{ "name": "David Worms", "email": "david@adaltas.com" },
{ "name": "Daniel Gasienica", "email": "daniel@gasienica.ch"}
],
"main": "./lib",
"engines": { "node": ">= 0.4.0" },
"scripts": {
"test": "mocha"
}
}
9 changes: 9 additions & 0 deletions test/index.coffee
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@

should = require 'should'
status = require '..'

describe 'HTTP Status', ->

it 'should return code and message', ->
status.OK.should.eql 200
status[200].should.eql 'OK'
9 changes: 0 additions & 9 deletions test/index.js

This file was deleted.

0 comments on commit 91c41fd

Please sign in to comment.