Skip to content

Commit

Permalink
test: fix sitefile icon test (#2940)
Browse files Browse the repository at this point in the history
  • Loading branch information
dead-horse authored Aug 29, 2018
1 parent 81826ed commit b971e66
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions test/app/middleware/site_file.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,14 @@ describe('test/app/middleware/site_file.test.js', () => {
it('should GET /favicon.ico 200', () => {
return app.httpRequest()
.get('/favicon.ico')
.expect('Content-Type', 'image/x-icon')
// .expect(res => console.log(res.headers))
.expect(res => assert(res.headers['content-type'].includes('icon')))
.expect(200);
});

it('should GET /favicon.ico?t=123 200', () => {
return app.httpRequest()
.get('/favicon.ico?t=123')
.expect('Content-Type', 'image/x-icon')
// .expect(res => console.log(res.headers))
.expect(res => assert(res.headers['content-type'].includes('icon')))
.expect(200);
});

Expand Down

0 comments on commit b971e66

Please sign in to comment.