Skip to content

Commit ad9cbdd

Browse files
committed
Add failing test
1 parent bb64e71 commit ad9cbdd

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

test/server/plural.js

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ describe('Server', () => {
1111
'/api/': '/',
1212
'/blog/posts/:id/show': '/posts/:id',
1313
'/comments/special/:userId-:body': '/comments/?userId=:userId&body=:body',
14-
'/firstpostwithcomments': '/posts/1?_embed=comments'
14+
'/firstpostwithcomments': '/posts/1?_embed=comments',
15+
'/articles?_id=:id': '/posts/:id'
1516
}
1617

1718
beforeEach(() => {
@@ -704,6 +705,14 @@ describe('Server', () => {
704705
.end(done)
705706
})
706707

708+
// TODO
709+
// it('should rewrite query params', (done) => {
710+
// request(server)
711+
// .get('/articles?_id=1')
712+
// .expect(db.posts[0])
713+
// .end(done)
714+
// })
715+
707716
it('should expose routes', (done) => {
708717
request(server)
709718
.get('/__rules')

0 commit comments

Comments
 (0)