File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed
plugin/test/fixtures/v5/with-adapters/e2e-tests Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -117,7 +117,9 @@ exports.runTests = function runTests(env, host) {
117
117
expect ( result ) . toEqual ( {
118
118
amIJSON : true ,
119
119
} )
120
- expect ( res . headers . get ( 'content-type' ) ) . toEqual ( 'application/json' )
120
+ expect ( res . headers . get ( 'content-type' ) ) . toEqual (
121
+ 'application/json; charset=utf-8' ,
122
+ )
121
123
} )
122
124
test ( `returns json correctly via send` , async ( ) => {
123
125
const res = await fetchTwice ( `${ host } /api/i-am-json-too` )
@@ -126,14 +128,18 @@ exports.runTests = function runTests(env, host) {
126
128
expect ( result ) . toEqual ( {
127
129
amIJSON : true ,
128
130
} )
129
- expect ( res . headers . get ( 'content-type' ) ) . toEqual ( 'application/json' )
131
+ expect ( res . headers . get ( 'content-type' ) ) . toEqual (
132
+ 'application/json; charset=utf-8' ,
133
+ )
130
134
} )
131
135
test ( `returns boolean correctly via send` , async ( ) => {
132
136
const res = await fetchTwice ( `${ host } /api/i-am-false` )
133
137
const result = await res . json ( )
134
138
135
139
expect ( result ) . toEqual ( false )
136
- expect ( res . headers . get ( 'content-type' ) ) . toEqual ( 'application/json' )
140
+ expect ( res . headers . get ( 'content-type' ) ) . toEqual (
141
+ 'application/json; charset=utf-8' ,
142
+ )
137
143
} )
138
144
test ( `returns status correctly via send` , async ( ) => {
139
145
const res = await fetchTwice ( `${ host } /api/i-am-status` )
You can’t perform that action at this time.
0 commit comments