mirror of
https://github.com/typicode/json-server.git
synced 2025-07-28 20:52:08 +08:00
Refactor
This commit is contained in:
@ -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)
|
||||
|
Reference in New Issue
Block a user