diff --git a/Readme.md b/Readme.md index bf8194ed..1c53a208 100644 --- a/Readme.md +++ b/Readme.md @@ -32,7 +32,7 @@ const express = require('express'); const app = express(); app.get('/user', function(req, res) { - res.status(200).json({ name: 'tobi' }); + res.status(200).json({ name: 'john' }); }); request(app) @@ -103,7 +103,7 @@ describe('GET /users', function() { ```js describe('GET /user', function() { - it('user.name should be an case-insensitive match for "tobi"', function(done) { + it('user.name should be an case-insensitive match for "john"', function(done) { request(app) .get('/user') .set('Accept', 'application/json') @@ -113,7 +113,7 @@ describe('GET /user', function() { }) .expect(200, { id: 'some fixed id', - name: 'TOBI' + name: 'JOHN' }, done); }); }); @@ -125,7 +125,7 @@ Anything you can do with superagent, you can do with supertest - for example mul request(app) .post('/') .field('name', 'my awesome avatar') -.attach('avatar', 'test/fixtures/homeboy.jpg') +.attach('avatar', 'test/fixtures/avatar.jpg') ... ``` diff --git a/test/supertest.js b/test/supertest.js index c9a4927b..4560c192 100644 --- a/test/supertest.js +++ b/test/supertest.js @@ -134,8 +134,8 @@ describe('request(app)', function() { request(app) .post('/') - .send({ name: 'tobi' }) - .expect('tobi', done); + .send({ name: 'john' }) + .expect('john', done); }); it('should work when unbuffered', function(done) {