Skip to content

Commit

Permalink
lowercase utf-8
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesKyburz committed Apr 18, 2019
1 parent 1c51a9d commit 27dab4d
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions packages/server-base-router/test/mime.js
Expand Up @@ -26,7 +26,7 @@ test('*.txt returns text/plain', async t => {
})
t.deepEqual(
res.headers['content-type'],
'text/plain; charset=UTF-8',
'text/plain; charset=utf-8',
'correct content-type'
)
})
Expand Down Expand Up @@ -56,7 +56,7 @@ test('default mime type is text/plain', async t => {
})
t.deepEqual(
res.headers['content-type'],
'text/plain; charset=UTF-8',
'text/plain; charset=utf-8',
'correct content-type'
)
})
Expand All @@ -79,15 +79,15 @@ test('overriding mime types', async t => {
t.plan(1)
const fn = {
'@setup': ({ mime }) => {
mime.define({ 'custom/mime2; charset=UTF-8': ['x'] }, { force: true })
mime.define({ 'custom/mime2; charset=utf-8': ['x'] }, { force: true })
},
'/test.x': (req, res) => res.text('//')
}
const url = await getUrl(fn)
const res = await request(url + '/test.x', { resolveWithFullResponse: true })
t.deepEqual(
res.headers['content-type'],
'custom/mime2; charset=UTF-8',
'custom/mime2; charset=utf-8',
'correct content-type'
)
})
Expand All @@ -112,15 +112,15 @@ test('mime types lookup only uses extension', async t => {
t.plan(1)
const fn = {
'@setup': ({ mime }) => {
mime.define({ 'custom/mime2; charset=UTF-8': ['x'] }, { force: true })
mime.define({ 'custom/mime2; charset=utf-8': ['x'] }, { force: true })
},
'/application': (req, res) => res.text('')
}
const url = await getUrl(fn)
const res = await request(url + '/application', {
resolveWithFullResponse: true
})
let expectedMimetype = 'text/plain; charset=UTF-8'
let expectedMimetype = 'text/plain; charset=utf-8'
t.deepEqual(
res.headers['content-type'],
expectedMimetype,
Expand Down

0 comments on commit 27dab4d

Please sign in to comment.