From ad9cbdd1ae4c68c1909c4d938285d1d3fc9d5d0d Mon Sep 17 00:00:00 2001 From: typicode Date: Sun, 25 Dec 2016 18:49:09 +0100 Subject: [PATCH] Add failing test --- test/server/plural.js | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/test/server/plural.js b/test/server/plural.js index 8a70ec8..a144ca6 100644 --- a/test/server/plural.js +++ b/test/server/plural.js @@ -11,7 +11,8 @@ describe('Server', () => { '/api/': '/', '/blog/posts/:id/show': '/posts/:id', '/comments/special/:userId-:body': '/comments/?userId=:userId&body=:body', - '/firstpostwithcomments': '/posts/1?_embed=comments' + '/firstpostwithcomments': '/posts/1?_embed=comments', + '/articles?_id=:id': '/posts/:id' } beforeEach(() => { @@ -704,6 +705,14 @@ describe('Server', () => { .end(done) }) + // TODO + // it('should rewrite query params', (done) => { + // request(server) + // .get('/articles?_id=1') + // .expect(db.posts[0]) + // .end(done) + // }) + it('should expose routes', (done) => { request(server) .get('/__rules')