-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update package.json with repo and bug; Convert script to mocha and co…
…ffee
- Loading branch information
Showing
3 changed files
with
38 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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' |
This file was deleted.
Oops, something went wrong.