|
1 | 1 | // Jest Snapshot v1, https://goo.gl/fbAQLP
|
2 | 2 |
|
3 |
| -exports[`validate options should throw an error on the "attributes" option with "[]" value 1`] = ` |
| 3 | +exports[`validate options should throw an error on the "esModule" option with "true" value 1`] = ` |
| 4 | +"Invalid options object. HTML Loader has been initialized using an options object that does not match the API schema. |
| 5 | + - options.esModule should be a boolean." |
| 6 | +`; |
| 7 | + |
| 8 | +exports[`validate options should throw an error on the "sources" option with "[]" value 1`] = ` |
4 | 9 | "Invalid options object. HTML Loader has been initialized using an options object that does not match the API schema.
|
5 |
| - - options.attributes should be one of these: |
| 10 | + - options.sources should be one of these: |
6 | 11 | boolean | object { list?, urlFilter? }
|
7 | 12 | Details:
|
8 |
| - * options.attributes should be a boolean. |
9 |
| - * options.attributes should be an object: |
| 13 | + * options.sources should be a boolean. |
| 14 | + * options.sources should be an object: |
10 | 15 | object { list?, urlFilter? }"
|
11 | 16 | `;
|
12 | 17 |
|
13 |
| -exports[`validate options should throw an error on the "attributes" option with "{"list":[]}" value 1`] = ` |
| 18 | +exports[`validate options should throw an error on the "sources" option with "{"list":[]}" value 1`] = ` |
14 | 19 | "Invalid options object. HTML Loader has been initialized using an options object that does not match the API schema.
|
15 |
| - - options.attributes.list should be an non-empty array." |
| 20 | + - options.sources.list should be an non-empty array." |
16 | 21 | `;
|
17 | 22 |
|
18 |
| -exports[`validate options should throw an error on the "attributes" option with "{"list":[{"tag":"","attribute":"src","type":"src"}]}" value 1`] = ` |
| 23 | +exports[`validate options should throw an error on the "sources" option with "{"list":[{"tag":"","attribute":"src","type":"src"}]}" value 1`] = ` |
19 | 24 | "Invalid options object. HTML Loader has been initialized using an options object that does not match the API schema.
|
20 |
| - - options.attributes.list[0].tag should be an non-empty string." |
| 25 | + - options.sources.list[0].tag should be an non-empty string." |
21 | 26 | `;
|
22 | 27 |
|
23 |
| -exports[`validate options should throw an error on the "attributes" option with "{"list":[{"tag":"img","attribute":"src","type":"src","filter":"test"}]}" value 1`] = ` |
| 28 | +exports[`validate options should throw an error on the "sources" option with "{"list":[{"tag":"img","attribute":"src","type":"src","filter":"test"}]}" value 1`] = ` |
24 | 29 | "Invalid options object. HTML Loader has been initialized using an options object that does not match the API schema.
|
25 |
| - - options.attributes.list[0].filter should be an instance of function." |
| 30 | + - options.sources.list[0].filter should be an instance of function." |
26 | 31 | `;
|
27 | 32 |
|
28 |
| -exports[`validate options should throw an error on the "attributes" option with "{"list":[{"tag":"img","attribute":"src","type":"src"},{"tag":"img","attribute":"src","type":"src"}]}" value 1`] = ` |
| 33 | +exports[`validate options should throw an error on the "sources" option with "{"list":[{"tag":"img","attribute":"src","type":"src"},{"tag":"img","attribute":"src","type":"src"}]}" value 1`] = ` |
29 | 34 | "Invalid options object. HTML Loader has been initialized using an options object that does not match the API schema.
|
30 |
| - - options.attributes.list should not contain the item '[object Object]' twice." |
| 35 | + - options.sources.list should not contain the item '[object Object]' twice." |
31 | 36 | `;
|
32 | 37 |
|
33 |
| -exports[`validate options should throw an error on the "attributes" option with "{"list":[{"tag":"img","attribute":"src"}]}" value 1`] = ` |
| 38 | +exports[`validate options should throw an error on the "sources" option with "{"list":[{"tag":"img","attribute":"src"}]}" value 1`] = ` |
34 | 39 | "Invalid options object. HTML Loader has been initialized using an options object that does not match the API schema.
|
35 |
| - - options.attributes.list[0] misses the property 'type'. Should be: |
| 40 | + - options.sources.list[0] misses the property 'type'. Should be: |
36 | 41 | \\"src\\" | \\"srcset\\""
|
37 | 42 | `;
|
38 | 43 |
|
39 |
| -exports[`validate options should throw an error on the "attributes" option with "{"unknown":true}" value 1`] = ` |
| 44 | +exports[`validate options should throw an error on the "sources" option with "{"unknown":true}" value 1`] = ` |
40 | 45 | "Invalid options object. HTML Loader has been initialized using an options object that does not match the API schema.
|
41 |
| - - options.attributes has an unknown property 'unknown'. These properties are valid: |
| 46 | + - options.sources has an unknown property 'unknown'. These properties are valid: |
42 | 47 | object { list?, urlFilter? }"
|
43 | 48 | `;
|
44 | 49 |
|
45 |
| -exports[`validate options should throw an error on the "attributes" option with "{"urlFilter":false}" value 1`] = ` |
| 50 | +exports[`validate options should throw an error on the "sources" option with "{"urlFilter":false}" value 1`] = ` |
46 | 51 | "Invalid options object. HTML Loader has been initialized using an options object that does not match the API schema.
|
47 |
| - - options.attributes.urlFilter should be an instance of function." |
| 52 | + - options.sources.urlFilter should be an instance of function." |
48 | 53 | `;
|
49 | 54 |
|
50 |
| -exports[`validate options should throw an error on the "attributes" option with "true" value 1`] = ` |
| 55 | +exports[`validate options should throw an error on the "sources" option with "true" value 1`] = ` |
51 | 56 | "Invalid options object. HTML Loader has been initialized using an options object that does not match the API schema.
|
52 |
| - - options.attributes should be one of these: |
| 57 | + - options.sources should be one of these: |
53 | 58 | boolean | object { list?, urlFilter? }
|
54 | 59 | Details:
|
55 |
| - * options.attributes should be a boolean. |
56 |
| - * options.attributes should be an object: |
| 60 | + * options.sources should be a boolean. |
| 61 | + * options.sources should be an object: |
57 | 62 | object { list?, urlFilter? }"
|
58 | 63 | `;
|
59 | 64 |
|
60 |
| -exports[`validate options should throw an error on the "esModule" option with "true" value 1`] = ` |
61 |
| -"Invalid options object. HTML Loader has been initialized using an options object that does not match the API schema. |
62 |
| - - options.esModule should be a boolean." |
63 |
| -`; |
64 |
| -
|
65 | 65 | exports[`validate options should throw an error on the "unknown" option with "/test/" value 1`] = `
|
66 | 66 | "Invalid options object. HTML Loader has been initialized using an options object that does not match the API schema.
|
67 | 67 | - options has an unknown property 'unknown'. These properties are valid:
|
68 |
| - object { preprocessor?, attributes?, minimize?, esModule? }" |
| 68 | + object { preprocessor?, sources?, minimize?, esModule? }" |
69 | 69 | `;
|
70 | 70 |
|
71 | 71 | exports[`validate options should throw an error on the "unknown" option with "[]" value 1`] = `
|
72 | 72 | "Invalid options object. HTML Loader has been initialized using an options object that does not match the API schema.
|
73 | 73 | - options has an unknown property 'unknown'. These properties are valid:
|
74 |
| - object { preprocessor?, attributes?, minimize?, esModule? }" |
| 74 | + object { preprocessor?, sources?, minimize?, esModule? }" |
75 | 75 | `;
|
76 | 76 |
|
77 | 77 | exports[`validate options should throw an error on the "unknown" option with "{"foo":"bar"}" value 1`] = `
|
78 | 78 | "Invalid options object. HTML Loader has been initialized using an options object that does not match the API schema.
|
79 | 79 | - options has an unknown property 'unknown'. These properties are valid:
|
80 |
| - object { preprocessor?, attributes?, minimize?, esModule? }" |
| 80 | + object { preprocessor?, sources?, minimize?, esModule? }" |
81 | 81 | `;
|
82 | 82 |
|
83 | 83 | exports[`validate options should throw an error on the "unknown" option with "{}" value 1`] = `
|
84 | 84 | "Invalid options object. HTML Loader has been initialized using an options object that does not match the API schema.
|
85 | 85 | - options has an unknown property 'unknown'. These properties are valid:
|
86 |
| - object { preprocessor?, attributes?, minimize?, esModule? }" |
| 86 | + object { preprocessor?, sources?, minimize?, esModule? }" |
87 | 87 | `;
|
88 | 88 |
|
89 | 89 | exports[`validate options should throw an error on the "unknown" option with "1" value 1`] = `
|
90 | 90 | "Invalid options object. HTML Loader has been initialized using an options object that does not match the API schema.
|
91 | 91 | - options has an unknown property 'unknown'. These properties are valid:
|
92 |
| - object { preprocessor?, attributes?, minimize?, esModule? }" |
| 92 | + object { preprocessor?, sources?, minimize?, esModule? }" |
93 | 93 | `;
|
94 | 94 |
|
95 | 95 | exports[`validate options should throw an error on the "unknown" option with "false" value 1`] = `
|
96 | 96 | "Invalid options object. HTML Loader has been initialized using an options object that does not match the API schema.
|
97 | 97 | - options has an unknown property 'unknown'. These properties are valid:
|
98 |
| - object { preprocessor?, attributes?, minimize?, esModule? }" |
| 98 | + object { preprocessor?, sources?, minimize?, esModule? }" |
99 | 99 | `;
|
100 | 100 |
|
101 | 101 | exports[`validate options should throw an error on the "unknown" option with "test" value 1`] = `
|
102 | 102 | "Invalid options object. HTML Loader has been initialized using an options object that does not match the API schema.
|
103 | 103 | - options has an unknown property 'unknown'. These properties are valid:
|
104 |
| - object { preprocessor?, attributes?, minimize?, esModule? }" |
| 104 | + object { preprocessor?, sources?, minimize?, esModule? }" |
105 | 105 | `;
|
106 | 106 |
|
107 | 107 | exports[`validate options should throw an error on the "unknown" option with "true" value 1`] = `
|
108 | 108 | "Invalid options object. HTML Loader has been initialized using an options object that does not match the API schema.
|
109 | 109 | - options has an unknown property 'unknown'. These properties are valid:
|
110 |
| - object { preprocessor?, attributes?, minimize?, esModule? }" |
| 110 | + object { preprocessor?, sources?, minimize?, esModule? }" |
111 | 111 | `;
|
0 commit comments