Skip to content

Commit 84d868e

Browse files
committed
Revert "test: adjust content-type assertions"
This reverts commit fe67398.
1 parent ebd5bd4 commit 84d868e

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

plugin/test/fixtures/v5/with-adapters/e2e-tests/test-helpers.js

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -117,9 +117,7 @@ exports.runTests = function runTests(env, host) {
117117
expect(result).toEqual({
118118
amIJSON: true,
119119
})
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')
123121
})
124122
test(`returns json correctly via send`, async () => {
125123
const res = await fetchTwice(`${host}/api/i-am-json-too`)
@@ -128,18 +126,14 @@ exports.runTests = function runTests(env, host) {
128126
expect(result).toEqual({
129127
amIJSON: true,
130128
})
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')
134130
})
135131
test(`returns boolean correctly via send`, async () => {
136132
const res = await fetchTwice(`${host}/api/i-am-false`)
137133
const result = await res.json()
138134

139135
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')
143137
})
144138
test(`returns status correctly via send`, async () => {
145139
const res = await fetchTwice(`${host}/api/i-am-status`)

0 commit comments

Comments
 (0)