fix(core): update
This commit is contained in:
15
test/test.ts
15
test/test.ts
@ -25,6 +25,21 @@ tap.test('should detect json', async () => {
|
||||
tap.test('should detect html', async () => {
|
||||
const filePath = 'file.html';
|
||||
const fileType = smartmime.detectMimeType(filePath);
|
||||
expect(fileType).to.equal('text/html');
|
||||
console.log(fileType);
|
||||
});
|
||||
|
||||
tap.test('should detect woff', async () => {
|
||||
const filePath = 'file.woff';
|
||||
const fileType = smartmime.detectMimeType(filePath);
|
||||
expect(fileType).to.equal('font/woff');
|
||||
console.log(fileType);
|
||||
});
|
||||
|
||||
tap.test('should detect woff2', async () => {
|
||||
const filePath = 'file.woff2';
|
||||
const fileType = smartmime.detectMimeType(filePath);
|
||||
expect(fileType).to.equal('font/woff2');
|
||||
console.log(fileType);
|
||||
});
|
||||
|
||||
|
Reference in New Issue
Block a user