@@ -15,50 +15,68 @@ exports[`validate options should throw an error on the "flags" option with "true
15
15
- options.flags should be a integer."
16
16
` ;
17
17
18
+ exports [` validate options should throw an error on the "name" option with "false" value 1` ] = `
19
+ "Invalid options object. Node Loader has been initialized using an options object that does not match the API schema.
20
+ - options.name should be one of these:
21
+ string | function
22
+ Details:
23
+ * options.name should be a string.
24
+ * options.name should be an instance of function."
25
+ ` ;
26
+
27
+ exports [` validate options should throw an error on the "name" option with "true" value 1` ] = `
28
+ "Invalid options object. Node Loader has been initialized using an options object that does not match the API schema.
29
+ - options.name should be one of these:
30
+ string | function
31
+ Details:
32
+ * options.name should be a string.
33
+ * options.name should be an instance of function."
34
+ ` ;
35
+
18
36
exports [` validate options should throw an error on the "unknown" option with "/test/" value 1` ] = `
19
37
"Invalid options object. Node Loader has been initialized using an options object that does not match the API schema.
20
38
- options has an unknown property 'unknown'. These properties are valid:
21
- object { flags ? }"
39
+ object { name ? , flags ? }"
22
40
`;
23
41
24
42
exports [` validate options should throw an error on the "unknown" option with "[]" value 1` ] = `
25
43
"Invalid options object. Node Loader has been initialized using an options object that does not match the API schema.
26
44
- options has an unknown property 'unknown'. These properties are valid:
27
- object { flags ? }"
45
+ object { name ? , flags ? }"
28
46
`;
29
47
30
48
exports [` validate options should throw an error on the "unknown" option with "{ " foo" :" bar" } " value 1` ] = `
31
49
"Invalid options object. Node Loader has been initialized using an options object that does not match the API schema.
32
50
- options has an unknown property 'unknown'. These properties are valid:
33
- object { flags ? }"
51
+ object { name ? , flags ? }"
34
52
`;
35
53
36
54
exports [` validate options should throw an error on the "unknown" option with "{ } " value 1` ] = `
37
55
"Invalid options object. Node Loader has been initialized using an options object that does not match the API schema.
38
56
- options has an unknown property 'unknown'. These properties are valid:
39
- object { flags ? }"
57
+ object { name ? , flags ? }"
40
58
`;
41
59
42
60
exports [` validate options should throw an error on the "unknown" option with "1" value 1` ] = `
43
61
"Invalid options object. Node Loader has been initialized using an options object that does not match the API schema.
44
62
- options has an unknown property 'unknown'. These properties are valid:
45
- object { flags ? }"
63
+ object { name ? , flags ? }"
46
64
`;
47
65
48
66
exports [` validate options should throw an error on the "unknown" option with "false" value 1` ] = `
49
67
"Invalid options object. Node Loader has been initialized using an options object that does not match the API schema.
50
68
- options has an unknown property 'unknown'. These properties are valid:
51
- object { flags ? }"
69
+ object { name ? , flags ? }"
52
70
`;
53
71
54
72
exports [` validate options should throw an error on the "unknown" option with "test" value 1` ] = `
55
73
"Invalid options object. Node Loader has been initialized using an options object that does not match the API schema.
56
74
- options has an unknown property 'unknown'. These properties are valid:
57
- object { flags ? }"
75
+ object { name ? , flags ? }"
58
76
`;
59
77
60
78
exports [` validate options should throw an error on the "unknown" option with "true" value 1` ] = `
61
79
"Invalid options object. Node Loader has been initialized using an options object that does not match the API schema.
62
80
- options has an unknown property 'unknown'. These properties are valid:
63
- object { flags ? }"
81
+ object { name ? , flags ? }"
64
82
`;
0 commit comments