Update rewriter (#580)

This commit is contained in:
typicode
2017-07-05 13:17:10 +02:00
committed by GitHub
parent d5ac11f5ca
commit 21d2fff3a9
7 changed files with 43 additions and 44 deletions

View File

@ -42,7 +42,7 @@ describe('cli', () => {
)
routesFile = tempWrite.sync(
JSON.stringify({ '/blog/': '/' }),
JSON.stringify({ '/blog/*': '/$1' }),
'routes.json'
)
@ -260,7 +260,7 @@ describe('cli', () => {
})
it('should watch routes file', done => {
fs.writeFileSync(routesFile, JSON.stringify({ '/api/': '/' }))
fs.writeFileSync(routesFile, JSON.stringify({ '/api/*': '/$1' }))
setTimeout(() => {
request.get('/api/posts').expect(200, done)
}, 1000)