fix(core): update

This commit is contained in:
2021-08-10 11:49:39 +02:00
parent 75394aaf8b
commit 1907d253be
9 changed files with 24570 additions and 563 deletions

View File

@ -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);
});