File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff 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' )
You can’t perform that action at this time.
0 commit comments