Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
GarboMuffin committed Aug 20, 2024
1 parent 821b30c commit 08ee033
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/types.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ const request = supertest(app);
it('serves html with the proper Content-Type', () => {
return request.get('/index.html')
.set('Host', 'localhost')
.expect('Content-Type', 'text/html');
.expect('Content-Type', 'text/html; charset=utf-8');
});

it('serves js with the proper Content-Type', () => {
return request.get('/file.js')
.set('Host', 'localhost')
.expect('Content-Type', 'text/javascript');
.expect('Content-Type', 'text/javascript; charset=utf-8');
});

0 comments on commit 08ee033

Please sign in to comment.