You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: test/__snapshots__/validate-options.test.js.snap
+5Lines changed: 5 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -15,6 +15,11 @@ exports[`validate options should throw an error on the "attributes" option with
15
15
- options.attributes.list should be an non-empty array."
16
16
`;
17
17
18
+
exports[`validate options should throw an error on the "attributes" option with "{"list":[{"tag":"","attribute":"src","type":"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[0].tag should be an non-empty string."
21
+
`;
22
+
18
23
exports[`validate options should throw an error on the "attributes" option with "{"list":[{"tag":"img","attribute":"src","type":"src","filter":"test"}]}" value 1`] =`
19
24
"Invalid options object. HTML Loader has been initialized using an options object that does not match the API schema.
20
25
- options.attributes.list[0].filter should be an instance of function."
0 commit comments