@@ -44,7 +44,7 @@ describe("Server", function() {
44
44
45
45
it ( "GET request to bundle file" , function ( done ) {
46
46
request ( app ) . get ( "/public/bundle.js" )
47
- . expect ( "Content-Type" , "application/javascript" )
47
+ . expect ( "Content-Type" , "application/javascript; charset=UTF-8 " )
48
48
. expect ( "Content-Length" , "2780" )
49
49
. expect ( "Access-Control-Allow-Origin" , "*" )
50
50
. expect ( 200 , / c o n s o l e \. l o g \( " H e y \. " \) / , done ) ;
@@ -57,7 +57,7 @@ describe("Server", function() {
57
57
58
58
it ( "request to image" , function ( done ) {
59
59
request ( app ) . get ( "/public/svg.svg" )
60
- . expect ( "Content-Type" , "image/svg+xml" )
60
+ . expect ( "Content-Type" , "image/svg+xml; charset=UTF-8 " )
61
61
. expect ( "Content-Length" , "4778" )
62
62
. expect ( "Access-Control-Allow-Origin" , "*" )
63
63
. expect ( 200 , done ) ;
@@ -71,13 +71,13 @@ describe("Server", function() {
71
71
72
72
it ( "request to HMR json" , function ( done ) {
73
73
request ( app ) . get ( "/public/123a123412.hot-update.json" )
74
- . expect ( "Content-Type" , "application/json" )
74
+ . expect ( "Content-Type" , "application/json; charset=UTF-8 " )
75
75
. expect ( 200 , / \[ \" h i \" \] / , done ) ;
76
76
} ) ;
77
77
78
78
it ( "request to directory" , function ( done ) {
79
79
request ( app ) . get ( "/public/" )
80
- . expect ( "Content-Type" , "text/html" )
80
+ . expect ( "Content-Type" , "text/html; charset=UTF-8 " )
81
81
. expect ( "Content-Length" , "10" )
82
82
. expect ( "Access-Control-Allow-Origin" , "*" )
83
83
. expect ( 200 , / M y \ I n d e x \. / , done ) ;
0 commit comments