Skip to content

Commit

Permalink
refactor(esm test): simplify test case
Browse files Browse the repository at this point in the history
  • Loading branch information
marvin-j97 committed Jul 9, 2023
1 parent d230323 commit f16c0db
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions test/esm.mjs
Expand Up @@ -56,8 +56,7 @@ test("should have guessed application/mathml+xml", () => {
})

test("should not have an empty .extensions", () => {
assert(Object.keys(db).every((name) => {
var mime = db[name]
assert(Object.entries(db).every((mime) => {
if (!mime.extensions) return true
return mime.extensions.length
}))
Expand Down

0 comments on commit f16c0db

Please sign in to comment.