Skip to content

Commit 33f6e1e

Browse files
authored
test: update expected error message for macOS
PR-URL: #57742 Reviewed-By: Richard Lau <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: James M Snell <[email protected]>
1 parent 8456a12 commit 33f6e1e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/parallel/test-module-loading-error.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ const errorMessagesByPlatform = {
2828
win32: ['is not a valid Win32 application'],
2929
linux: ['file too short', 'Exec format error'],
3030
sunos: ['unknown file type', 'not an ELF file'],
31-
darwin: ['file too short', 'not a mach-o file'],
31+
darwin: ['file too short', 'not a mach-o file', 'not valid mach-o file'],
3232
aix: ['Cannot load module',
3333
'Cannot run a file that does not have a valid format.',
3434
'Exec format error'],

0 commit comments

Comments
 (0)