This commit is contained in:
typicode
2017-02-13 20:42:20 +01:00
parent ffda7238dd
commit 2c6fbf35b0
5 changed files with 23 additions and 14 deletions

View File

@ -506,7 +506,8 @@ describe('Server', () => {
request(server)
.post('/posts')
.send({body: 'foo', booleanValue: true, integerValue: 1})
.expect('Location', /3$/)
.expect('Access-Control-Expose-Headers', 'Location')
.expect('Location', /posts\/3$/)
.expect('Content-Type', /json/)
.expect({id: 3, body: 'foo', booleanValue: true, integerValue: 1})
.expect(201)