Skip to content
Myr

test: add test for normalizeType fallback when mime lookup fails (#6894)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

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.

authored by Ayoub Mabrouk · committed by GitHub · parent c9ecf7b · Browse files · 1 file+8 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Trailers

  • Co-authored-by: bjohansebas <103585995+bjohansebas@users.noreply.github.com>

Diff stats

1 file+8 added−1 removed

  • tests:+8 added−1 removed

1 file+8 added−1 removed

modified:test/utils.js+8 added-1 removed