Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

updated dependencies

  • Loading branch information...
commit df7892259756b43b8e7e90adf466c442e6e3e22d 1 parent cd6c748
Pau Ramon Revilla authored

Showing 3 changed files with 1 addition and 44 deletions. Show diff stats Hide diff stats

  1. +0 27 example/app.js
  2. +0 17 example/test.js
  3. +1 0  package.json
27 example/app.js
... ... @@ -1,27 +0,0 @@
1   -var express = require('express');
2   -var app = express.createServer();
3   -
4   -app.use(express.bodyDecoder());
5   -
6   -app.get('/', function (req, res) {
7   - setTimeout(function () {
8   - res.writeHead(200, {'Content-Type': 'text/plain'});
9   - res.end();
10   - }, 200);
11   -});
12   -
13   -app.get('/hi', function (req, res) {
14   - res.writeHead(500, {'Content-Type': 'text/plain'});
15   - res.end('use post instead');
16   -});
17   -
18   -app.post('/hi', function (req, res) {
19   - setTimeout(function () {
20   - res.writeHead(200, {'Content-Type': 'text/plain'});
21   - res.end(req.param('message'));
22   - }, 100);
23   -});
24   -
25   -app.listen(3000);
26   -
27   -module.exports = app;
17 example/test.js
... ... @@ -1,17 +0,0 @@
1   -var testosterone = require('testosterone')({port: 3000}),
2   - assert = testosterone.assert;
3   -
4   -testosterone
5   - .get('/', function (res) {
6   - assert.equal(res.statusCode, 200)
7   - })
8   -
9   - .get('/hi', function (res) {
10   - assert.equal(res.statusCode, 500);
11   - assert.equal(res.body, 'use post instead');
12   - })
13   -
14   - .post('/hi', {data: {message: 'hola'}}, {
15   - status: 200,
16   - body: 'hola'
17   - });
1  package.json
@@ -7,6 +7,7 @@
7 7 "directories": {
8 8 "lib": "lib"
9 9 },
  10 + "dependencies": {"funk": ">=1.0.1", "colors": ">=0.3.0"},
10 11 "main" : "index",
11 12 "engines": {
12 13 "node": "*"

0 comments on commit df78922

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