Use text/plain for PATENTS file
This commit is contained in:
parent
6b482f1099
commit
f87f0962f4
server/middleware/utils
|
@ -2,11 +2,12 @@ const mime = require('mime')
|
|||
|
||||
mime.define({
|
||||
'text/plain': [
|
||||
'license',
|
||||
'readme',
|
||||
'changes',
|
||||
'authors',
|
||||
'changes',
|
||||
'license',
|
||||
'makefile',
|
||||
'patents',
|
||||
'readme',
|
||||
'ts',
|
||||
'flow'
|
||||
]
|
||||
|
|
|
@ -1,11 +1,12 @@
|
|||
const getFileContentType = require('./getFileContentType')
|
||||
|
||||
it('gets a content type of text/plain for LICENSE|README|CHANGES|AUTHORS|Makefile', () => {
|
||||
expect(getFileContentType('LICENSE')).toBe('text/plain')
|
||||
expect(getFileContentType('README')).toBe('text/plain')
|
||||
expect(getFileContentType('CHANGES')).toBe('text/plain')
|
||||
expect(getFileContentType('AUTHORS')).toBe('text/plain')
|
||||
expect(getFileContentType('CHANGES')).toBe('text/plain')
|
||||
expect(getFileContentType('LICENSE')).toBe('text/plain')
|
||||
expect(getFileContentType('Makefile')).toBe('text/plain')
|
||||
expect(getFileContentType('PATENTS')).toBe('text/plain')
|
||||
expect(getFileContentType('README')).toBe('text/plain')
|
||||
})
|
||||
|
||||
it('gets a content type of text/plain for .*rc files', () => {
|
||||
|
|
Loading…
Reference in New Issue