@@ -6,17 +6,19 @@ const assert = require('assert');
6
6
await assert . rejects ( import ( 'data:text/plain,export default0' ) , {
7
7
code : 'ERR_INVALID_MODULE_SPECIFIER' ,
8
8
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"' ,
11
11
} ) ;
12
12
await assert . rejects ( import ( 'data:text/plain;base64,' ) , {
13
13
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"' ,
16
17
} ) ;
17
18
await assert . rejects ( import ( 'data:application/json,[]' ) , {
18
19
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"' ,
21
23
} ) ;
22
24
} ) ( ) . then ( common . mustCall ( ) ) ;
0 commit comments