express icon indicating copy to clipboard operation
express copied to clipboard

test: add test for normalizeType fallback when mime lookup fails

Open Ayoub-Mabrouk opened this issue 2 months ago • 0 comments

Add test to verify that utils.normalizeType correctly defaults to 'application/octet-stream' when mime.lookup() returns null/undefined for unknown file extensions. This covers the fallback behavior on line 64 of lib/utils.js and ensures proper handling of unrecognized MIME types

Ayoub-Mabrouk avatar Nov 10 '25 22:11 Ayoub-Mabrouk