Add failing test

This commit is contained in:
typicode
2016-12-25 18:49:09 +01:00
parent bb64e719b7
commit ad9cbdd1ae

View File

@ -11,7 +11,8 @@ describe('Server', () => {
'/api/': '/', '/api/': '/',
'/blog/posts/:id/show': '/posts/:id', '/blog/posts/:id/show': '/posts/:id',
'/comments/special/:userId-:body': '/comments/?userId=:userId&body=:body', '/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(() => { beforeEach(() => {
@ -704,6 +705,14 @@ describe('Server', () => {
.end(done) .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) => { it('should expose routes', (done) => {
request(server) request(server)
.get('/__rules') .get('/__rules')