Skip to content

Commit

Permalink
fix(media_types): load extensions when directly importing `extensions…
Browse files Browse the repository at this point in the history
…ByTypes()` (#4351)
  • Loading branch information
kt3k authored Feb 19, 2024
1 parent 253e329 commit 5052851
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions media_types/extensions_by_type.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

import { parseMediaType } from "./parse_media_type.ts";
import { extensions } from "./_util.ts";
import "./_db.ts";

export { extensions };

Expand Down
2 changes: 1 addition & 1 deletion media_types/extensions_by_type_test.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.

import { assertEquals } from "../assert/mod.ts";
import { extensionsByType } from "./mod.ts";
import { extensionsByType } from "./extensions_by_type.ts";

Deno.test({
name: "media_types - extensionsByType()",
Expand Down

0 comments on commit 5052851

Please sign in to comment.