Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Update package.json with repo and bug; Convert script to mocha and co…

…ffee
  • Loading branch information...
commit 91c41fd0815423eb1d2b4f6fc35ec777d67de8c0 1 parent 52117ad
@wdavidw authored
Showing with 38 additions and 17 deletions.
  1. +29 −8 package.json
  2. +9 −0 test/index.coffee
  3. +0 −9 test/index.js
View
37 package.json
@@ -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"
+ }
}
View
9 test/index.coffee
@@ -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'
View
9 test/index.js
@@ -1,9 +0,0 @@
-var assert = require('assert'),
- HTTPStatus = require('../lib/index');
-
-module.exports = {
- 'Test HTTP Status Code': function () {
- assert.eql(200, HTTPStatus.OK);
- assert.eql('OK', HTTPStatus[200]);
- }
-};
Please sign in to comment.
Something went wrong with that request. Please try again.