From 1ce134c6cf02c6c95b9b44f4ae575af7ace04fda Mon Sep 17 00:00:00 2001 From: Nicolas Morel Date: Wed, 23 Oct 2024 18:16:27 +0200 Subject: [PATCH] fix: tests --- package.json | 2 +- test/esm.js | 2 +- test/index.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 449b820..d9a7f47 100644 --- a/package.json +++ b/package.json @@ -20,7 +20,7 @@ }, "dependencies": { "@hapi/hoek": "^11.0.2", - "mime-db": "^1.52.0" + "mime-db": "^1.53.0" }, "devDependencies": { "@hapi/code": "^9.0.0", diff --git a/test/esm.js b/test/esm.js index 4469c2a..68594e2 100644 --- a/test/esm.js +++ b/test/esm.js @@ -19,7 +19,7 @@ describe('import()', () => { it('exposes all methods and classes as named imports', () => { - expect(Object.keys(Mimos)).to.equal([ + expect(Object.keys(Mimos).filter((k) => k !== 'module.exports')).to.equal([ 'Mimos', 'MimosEntry', 'default' diff --git a/test/index.js b/test/index.js index 0abf27b..93c7b0a 100755 --- a/test/index.js +++ b/test/index.js @@ -25,7 +25,7 @@ describe('Mimos', () => { charset: 'UTF-8', compressible: true, extensions: ['js', 'mjs'], - type: 'application/javascript' + type: 'text/javascript' }); });