@@ -6,17 +6,19 @@ const assert = require('assert');
66 await assert . rejects ( import ( 'data:text/plain,export default0' ) , {
77 code : 'ERR_INVALID_MODULE_SPECIFIER' ,
88 message :
9- 'Invalid module "data:text/plain,export default0" unsupported MIME ' +
10- '"text/plain"' ,
9+ 'Invalid module "data:text/plain,export default0" has an unsupported ' +
10+ 'MIME type "text/plain"' ,
1111 } ) ;
1212 await assert . rejects ( import ( 'data:text/plain;base64,' ) , {
1313 code : 'ERR_INVALID_MODULE_SPECIFIER' ,
14- message : 'Invalid module "data:text/plain;base64," unsupported MIME ' +
15- '"text/plain"' ,
14+ message :
15+ 'Invalid module "data:text/plain;base64," has an unsupported ' +
16+ 'MIME type "text/plain"' ,
1617 } ) ;
1718 await assert . rejects ( import ( 'data:application/json,[]' ) , {
1819 code : 'ERR_INVALID_MODULE_SPECIFIER' ,
19- message : 'Invalid module "data:application/json,[]" unsupported MIME ' +
20- '"application/json"' ,
20+ message :
21+ 'Invalid module "data:application/json,[]" has an unsupported ' +
22+ 'MIME type "application/json"' ,
2123 } ) ;
2224} ) ( ) . then ( common . mustCall ( ) ) ;
0 commit comments