mirror of
https://github.com/typicode/json-server.git
synced 2025-07-27 20:23:34 +08:00
Syntax
This commit is contained in:
@ -689,7 +689,7 @@ describe('Server', () => {
|
|||||||
.end(done)
|
.end(done)
|
||||||
})
|
})
|
||||||
|
|
||||||
it('should rewrite using query without params', function (done) {
|
it('should rewrite using query without params', (done) => {
|
||||||
const expectedPost = _.cloneDeep(db.posts[0])
|
const expectedPost = _.cloneDeep(db.posts[0])
|
||||||
expectedPost.comments = [ db.comments[0], db.comments[1] ]
|
expectedPost.comments = [ db.comments[0], db.comments[1] ]
|
||||||
request(server)
|
request(server)
|
||||||
@ -698,7 +698,7 @@ describe('Server', () => {
|
|||||||
.end(done)
|
.end(done)
|
||||||
})
|
})
|
||||||
|
|
||||||
it('should rewrite using params and query', function (done) {
|
it('should rewrite using params and query', (done) => {
|
||||||
request(server)
|
request(server)
|
||||||
.get('/comments/special/1-quux')
|
.get('/comments/special/1-quux')
|
||||||
.expect([db.comments[4]])
|
.expect([db.comments[4]])
|
||||||
|
Reference in New Issue
Block a user