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