|
1 | 1 | // Jest Snapshot v1, https://goo.gl/fbAQLP
|
2 | 2 |
|
| 3 | +exports[`validate options should throw an error on the "attributes" option with "[":src",":src"]" value 1`] = ` |
| 4 | +"Invalid options object. HTML Loader has been initialized using an options object that does not match the API schema. |
| 5 | + - options.attributes should not contain the item ':src' twice." |
| 6 | +`; |
| 7 | + |
| 8 | +exports[`validate options should throw an error on the "attributes" option with "[]" value 1`] = ` |
| 9 | +"Invalid options object. HTML Loader has been initialized using an options object that does not match the API schema. |
| 10 | + - options.attributes should be an non-empty array." |
| 11 | +`; |
| 12 | + |
| 13 | +exports[`validate options should throw an error on the "attributes" option with "{"filter":false}" value 1`] = ` |
| 14 | +"Invalid options object. HTML Loader has been initialized using an options object that does not match the API schema. |
| 15 | + - options.attributes.filter should be an instance of function." |
| 16 | +`; |
| 17 | + |
| 18 | +exports[`validate options should throw an error on the "attributes" option with "{"list":[":src",":src"]}" value 1`] = ` |
| 19 | +"Invalid options object. HTML Loader has been initialized using an options object that does not match the API schema. |
| 20 | + - options.attributes.list should not contain the item ':src' twice." |
| 21 | +`; |
| 22 | + |
| 23 | +exports[`validate options should throw an error on the "attributes" option with "{"list":[]}" value 1`] = ` |
| 24 | +"Invalid options object. HTML Loader has been initialized using an options object that does not match the API schema. |
| 25 | + - options.attributes.list should be an non-empty array." |
| 26 | +`; |
| 27 | + |
| 28 | +exports[`validate options should throw an error on the "attributes" option with "{"root":false}" value 1`] = ` |
| 29 | +"Invalid options object. HTML Loader has been initialized using an options object that does not match the API schema. |
| 30 | + - options.attributes.root should be a string." |
| 31 | +`; |
| 32 | + |
3 | 33 | exports[`validate options should throw an error on the "attributes" option with "true" value 1`] = `
|
4 | 34 | "Invalid options object. HTML Loader has been initialized using an options object that does not match the API schema.
|
5 | 35 | - options.attributes should be one of these:
|
6 |
| - boolean | [string, ...] | object { root?, list? } |
| 36 | + boolean | [string, ...] (should not have fewer than 1 item, should not have duplicate items) | object { list?, filter?, root? } |
7 | 37 | Details:
|
8 | 38 | * options.attributes should be a boolean.
|
9 | 39 | * options.attributes should be an array:
|
10 |
| - [string, ...] |
| 40 | + [string, ...] (should not have fewer than 1 item, should not have duplicate items) |
11 | 41 | * options.attributes should be an object:
|
12 |
| - object { root?, list? }" |
| 42 | + object { list?, filter?, root? }" |
13 | 43 | `;
|
14 | 44 |
|
15 | 45 | exports[`validate options should throw an error on the "esModule" option with "true" value 1`] = `
|
|
0 commit comments