|
3 | 3 | exports[`validate options should throw an error on the "attributes" option with "true" value 1`] = ` |
4 | 4 | "Invalid options object. HTML Loader has been initialized using an options object that does not match the API schema. |
5 | 5 | - options.attributes should be one of these: |
6 | | - boolean | [string, ...] |
| 6 | + boolean | [string, ...] | object { root?, list? } |
7 | 7 | Details: |
8 | 8 | * options.attributes should be a boolean. |
9 | 9 | * options.attributes should be an array: |
10 | | - [string, ...]" |
| 10 | + [string, ...] |
| 11 | + * options.attributes should be an object: |
| 12 | + object { root?, list? }" |
11 | 13 | `; |
12 | 14 |
|
13 | 15 | exports[`validate options should throw an error on the "esModule" option with "true" value 1`] = ` |
14 | 16 | "Invalid options object. HTML Loader has been initialized using an options object that does not match the API schema. |
15 | 17 | - options.esModule should be a boolean." |
16 | 18 | `; |
17 | 19 |
|
18 | | -exports[`validate options should throw an error on the "root" option with "true" value 1`] = ` |
19 | | -"Invalid options object. HTML Loader has been initialized using an options object that does not match the API schema. |
20 | | - - options.root should be a string." |
21 | | -`; |
22 | | - |
23 | 20 | exports[`validate options should throw an error on the "unknown" option with "/test/" value 1`] = ` |
24 | 21 | "Invalid options object. HTML Loader has been initialized using an options object that does not match the API schema. |
25 | 22 | - options has an unknown property 'unknown'. These properties are valid: |
26 | | - object { attributes?, root?, minimize?, esModule? }" |
| 23 | + object { attributes?, minimize?, esModule? }" |
27 | 24 | `; |
28 | 25 |
|
29 | 26 | exports[`validate options should throw an error on the "unknown" option with "[]" value 1`] = ` |
30 | 27 | "Invalid options object. HTML Loader has been initialized using an options object that does not match the API schema. |
31 | 28 | - options has an unknown property 'unknown'. These properties are valid: |
32 | | - object { attributes?, root?, minimize?, esModule? }" |
| 29 | + object { attributes?, minimize?, esModule? }" |
33 | 30 | `; |
34 | 31 |
|
35 | 32 | exports[`validate options should throw an error on the "unknown" option with "{"foo":"bar"}" value 1`] = ` |
36 | 33 | "Invalid options object. HTML Loader has been initialized using an options object that does not match the API schema. |
37 | 34 | - options has an unknown property 'unknown'. These properties are valid: |
38 | | - object { attributes?, root?, minimize?, esModule? }" |
| 35 | + object { attributes?, minimize?, esModule? }" |
39 | 36 | `; |
40 | 37 |
|
41 | 38 | exports[`validate options should throw an error on the "unknown" option with "{}" value 1`] = ` |
42 | 39 | "Invalid options object. HTML Loader has been initialized using an options object that does not match the API schema. |
43 | 40 | - options has an unknown property 'unknown'. These properties are valid: |
44 | | - object { attributes?, root?, minimize?, esModule? }" |
| 41 | + object { attributes?, minimize?, esModule? }" |
45 | 42 | `; |
46 | 43 |
|
47 | 44 | exports[`validate options should throw an error on the "unknown" option with "1" value 1`] = ` |
48 | 45 | "Invalid options object. HTML Loader has been initialized using an options object that does not match the API schema. |
49 | 46 | - options has an unknown property 'unknown'. These properties are valid: |
50 | | - object { attributes?, root?, minimize?, esModule? }" |
| 47 | + object { attributes?, minimize?, esModule? }" |
51 | 48 | `; |
52 | 49 |
|
53 | 50 | exports[`validate options should throw an error on the "unknown" option with "false" value 1`] = ` |
54 | 51 | "Invalid options object. HTML Loader has been initialized using an options object that does not match the API schema. |
55 | 52 | - options has an unknown property 'unknown'. These properties are valid: |
56 | | - object { attributes?, root?, minimize?, esModule? }" |
| 53 | + object { attributes?, minimize?, esModule? }" |
57 | 54 | `; |
58 | 55 |
|
59 | 56 | exports[`validate options should throw an error on the "unknown" option with "test" value 1`] = ` |
60 | 57 | "Invalid options object. HTML Loader has been initialized using an options object that does not match the API schema. |
61 | 58 | - options has an unknown property 'unknown'. These properties are valid: |
62 | | - object { attributes?, root?, minimize?, esModule? }" |
| 59 | + object { attributes?, minimize?, esModule? }" |
63 | 60 | `; |
64 | 61 |
|
65 | 62 | exports[`validate options should throw an error on the "unknown" option with "true" value 1`] = ` |
66 | 63 | "Invalid options object. HTML Loader has been initialized using an options object that does not match the API schema. |
67 | 64 | - options has an unknown property 'unknown'. These properties are valid: |
68 | | - object { attributes?, root?, minimize?, esModule? }" |
| 65 | + object { attributes?, minimize?, esModule? }" |
69 | 66 | `; |
0 commit comments