Permalink
Browse files

updated dependencies

  • Loading branch information...
1 parent cd6c748 commit df7892259756b43b8e7e90adf466c442e6e3e22d @masylum committed Jan 30, 2011
Showing with 1 addition and 44 deletions.
  1. +0 −27 example/app.js
  2. +0 −17 example/test.js
  3. +1 −0 package.json
View
27 example/app.js
@@ -1,27 +0,0 @@
-var express = require('express');
-var app = express.createServer();
-
-app.use(express.bodyDecoder());
-
-app.get('/', function (req, res) {
- setTimeout(function () {
- res.writeHead(200, {'Content-Type': 'text/plain'});
- res.end();
- }, 200);
-});
-
-app.get('/hi', function (req, res) {
- res.writeHead(500, {'Content-Type': 'text/plain'});
- res.end('use post instead');
-});
-
-app.post('/hi', function (req, res) {
- setTimeout(function () {
- res.writeHead(200, {'Content-Type': 'text/plain'});
- res.end(req.param('message'));
- }, 100);
-});
-
-app.listen(3000);
-
-module.exports = app;
View
17 example/test.js
@@ -1,17 +0,0 @@
-var testosterone = require('testosterone')({port: 3000}),
- assert = testosterone.assert;
-
-testosterone
- .get('/', function (res) {
- assert.equal(res.statusCode, 200)
- })
-
- .get('/hi', function (res) {
- assert.equal(res.statusCode, 500);
- assert.equal(res.body, 'use post instead');
- })
-
- .post('/hi', {data: {message: 'hola'}}, {
- status: 200,
- body: 'hola'
- });
View
1 package.json
@@ -7,6 +7,7 @@
"directories": {
"lib": "lib"
},
+ "dependencies": {"funk": ">=1.0.1", "colors": ">=0.3.0"},
"main" : "index",
"engines": {
"node": "*"

0 comments on commit df78922

Please sign in to comment.