From 4be675c4e126503b755cb4a59bf84f8c84ce9b97 Mon Sep 17 00:00:00 2001 From: Panagiotis Papadopoulos Date: Mon, 20 Jan 2025 08:34:52 +0100 Subject: [PATCH] test(import/mime): add additional test case for getMime --- src/services/import/mime.spec.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/services/import/mime.spec.ts b/src/services/import/mime.spec.ts index bc2497ecc..acebd94f7 100644 --- a/src/services/import/mime.spec.ts +++ b/src/services/import/mime.spec.ts @@ -16,6 +16,11 @@ describe("#getMime", () => { ["test.py"], "text/x-python" ], + [ + "File extension with inconsisten capitalization that is defined in EXTENSION_TO_MIME", + ["test.gRoOvY"], "text/x-groovy" + ], + [ "File extension that is not defined in EXTENSION_TO_MIME should use mimeTypes.lookup", ["test.zip"], "application/zip"