params.js
This file
Path
test/acceptance/params.js
28 lines · 669 bytes · JavaScript
Last changed by
Not known.
History of this fileTake it
12345678910111213141516171819202122232425262728var app = require('../../examples/params/app') , request = require('../support/http');
describe('params', function(){ describe('GET /', function(){ it('should respond with instructions', function(done){ request(app) .get('/') .expect(/Visit/,done) }) })
describe('GET /user/0', function(){ it('should respond with a user', function(done){ request(app) .get('/user/0') .expect(/user tj/,done) }) })
describe('GET /users/0-2', function(){ it('should respond with three users', function(done){ request(app) .get('/users/0-2') .expect(/users tj, tobi/,done) }) })})