|
| 1 | +// Jest Snapshot v1, https://goo.gl/fbAQLP |
| 2 | + |
| 3 | +exports[`validate options should throw an error on the "additionalCode" option with "/test/" value 1`] = ` |
| 4 | +"Invalid options object. Imports loader has been initialized using an options object that does not match the API schema. |
| 5 | + - options.additionalCode should be a non-empty string." |
| 6 | +`; |
| 7 | + |
| 8 | +exports[`validate options should throw an error on the "additionalCode" option with "[""]" value 1`] = ` |
| 9 | +"Invalid options object. Imports loader has been initialized using an options object that does not match the API schema. |
| 10 | + - options.additionalCode should be a non-empty string." |
| 11 | +`; |
| 12 | + |
| 13 | +exports[`validate options should throw an error on the "additionalCode" option with "[]" value 1`] = ` |
| 14 | +"Invalid options object. Imports loader has been initialized using an options object that does not match the API schema. |
| 15 | + - options.additionalCode should be a non-empty string." |
| 16 | +`; |
| 17 | + |
| 18 | +exports[`validate options should throw an error on the "additionalCode" option with "{}" value 1`] = ` |
| 19 | +"Invalid options object. Imports loader has been initialized using an options object that does not match the API schema. |
| 20 | + - options.additionalCode should be a non-empty string." |
| 21 | +`; |
| 22 | + |
| 23 | +exports[`validate options should throw an error on the "additionalCode" option with "false" value 1`] = ` |
| 24 | +"Invalid options object. Imports loader has been initialized using an options object that does not match the API schema. |
| 25 | + - options.additionalCode should be a non-empty string." |
| 26 | +`; |
| 27 | + |
| 28 | +exports[`validate options should throw an error on the "additionalCode" option with "true" value 1`] = ` |
| 29 | +"Invalid options object. Imports loader has been initialized using an options object that does not match the API schema. |
| 30 | + - options.additionalCode should be a non-empty string." |
| 31 | +`; |
| 32 | + |
| 33 | +exports[`validate options should throw an error on the "imports" option with "" value 1`] = ` |
| 34 | +"Invalid options object. Imports loader has been initialized using an options object that does not match the API schema. |
| 35 | + - options.imports should be an non-empty string." |
| 36 | +`; |
| 37 | + |
| 38 | +exports[`validate options should throw an error on the "imports" option with "/test/" value 1`] = `"The import should have \\"moduleName\\" option in \\"/test/\\" value"`; |
| 39 | + |
| 40 | +exports[`validate options should throw an error on the "imports" option with "[""]" value 1`] = ` |
| 41 | +"Invalid options object. Imports loader has been initialized using an options object that does not match the API schema. |
| 42 | + - options.imports[0] should be an non-empty string." |
| 43 | +`; |
| 44 | + |
| 45 | +exports[`validate options should throw an error on the "imports" option with "[]" value 1`] = ` |
| 46 | +"Invalid options object. Imports loader has been initialized using an options object that does not match the API schema. |
| 47 | + - options.imports should be an non-empty array." |
| 48 | +`; |
| 49 | + |
| 50 | +exports[`validate options should throw an error on the "imports" option with "{"syntax":"default","moduleName":"jQuery","name":"lib","alias":"lib_alias"}" value 1`] = `"The \\"default\\" syntax can't have \\"lib_alias\\" alias in \\"[object Object]\\" value"`; |
| 51 | + |
| 52 | +exports[`validate options should throw an error on the "imports" option with "{"type":"string","moduleName":"jQuery","list":false}" value 1`] = ` |
| 53 | +"Invalid options object. Imports loader has been initialized using an options object that does not match the API schema. |
| 54 | + - options.imports should be one of these: |
| 55 | + non-empty string | object { syntax?, moduleName?, name?, alias? } | [non-empty string | object { syntax?, moduleName?, name?, alias? }, ...] (should not have fewer than 1 item) |
| 56 | + Details: |
| 57 | + * options.imports has an unknown property 'type'. These properties are valid: |
| 58 | + object { syntax?, moduleName?, name?, alias? } |
| 59 | + * options.imports has an unknown property 'list'. These properties are valid: |
| 60 | + object { syntax?, moduleName?, name?, alias? }" |
| 61 | +`; |
| 62 | +
|
| 63 | +exports[`validate options should throw an error on the "imports" option with "{}" value 1`] = `"The import should have \\"moduleName\\" option in \\"[object Object]\\" value"`; |
| 64 | +
|
| 65 | +exports[`validate options should throw an error on the "imports" option with "false" value 1`] = ` |
| 66 | +"Invalid options object. Imports loader has been initialized using an options object that does not match the API schema. |
| 67 | + - options.imports should be one of these: |
| 68 | + non-empty string | object { syntax?, moduleName?, name?, alias? } | [non-empty string | object { syntax?, moduleName?, name?, alias? }, ...] (should not have fewer than 1 item) |
| 69 | + Details: |
| 70 | + * options.imports should be a non-empty string. |
| 71 | + * options.imports should be an object: |
| 72 | + object { syntax?, moduleName?, name?, alias? } |
| 73 | + * options.imports should be an array: |
| 74 | + [non-empty string | object { syntax?, moduleName?, name?, alias? }, ...] (should not have fewer than 1 item)" |
| 75 | +`; |
| 76 | +
|
| 77 | +exports[`validate options should throw an error on the "imports" option with "true" value 1`] = ` |
| 78 | +"Invalid options object. Imports loader has been initialized using an options object that does not match the API schema. |
| 79 | + - options.imports should be one of these: |
| 80 | + non-empty string | object { syntax?, moduleName?, name?, alias? } | [non-empty string | object { syntax?, moduleName?, name?, alias? }, ...] (should not have fewer than 1 item) |
| 81 | + Details: |
| 82 | + * options.imports should be a non-empty string. |
| 83 | + * options.imports should be an object: |
| 84 | + object { syntax?, moduleName?, name?, alias? } |
| 85 | + * options.imports should be an array: |
| 86 | + [non-empty string | object { syntax?, moduleName?, name?, alias? }, ...] (should not have fewer than 1 item)" |
| 87 | +`; |
| 88 | +
|
| 89 | +exports[`validate options should throw an error on the "type" option with "" value 1`] = ` |
| 90 | +"Invalid options object. Imports loader has been initialized using an options object that does not match the API schema. |
| 91 | + - options.type should be one of these: |
| 92 | + \\"module\\" | \\"commonjs\\"" |
| 93 | +`; |
| 94 | +
|
| 95 | +exports[`validate options should throw an error on the "type" option with "[]" value 1`] = ` |
| 96 | +"Invalid options object. Imports loader has been initialized using an options object that does not match the API schema. |
| 97 | + - options.type should be one of these: |
| 98 | + \\"module\\" | \\"commonjs\\"" |
| 99 | +`; |
| 100 | +
|
| 101 | +exports[`validate options should throw an error on the "type" option with "{}" value 1`] = ` |
| 102 | +"Invalid options object. Imports loader has been initialized using an options object that does not match the API schema. |
| 103 | + - options.type should be one of these: |
| 104 | + \\"module\\" | \\"commonjs\\"" |
| 105 | +`; |
| 106 | +
|
| 107 | +exports[`validate options should throw an error on the "type" option with "string" value 1`] = ` |
| 108 | +"Invalid options object. Imports loader has been initialized using an options object that does not match the API schema. |
| 109 | + - options.type should be one of these: |
| 110 | + \\"module\\" | \\"commonjs\\"" |
| 111 | +`; |
| 112 | +
|
| 113 | +exports[`validate options should throw an error on the "unknown" option with "/test/" value 1`] = ` |
| 114 | +"Invalid options object. Imports loader has been initialized using an options object that does not match the API schema. |
| 115 | + - options should be one of these: |
| 116 | + object { imports, … } | object { wrapper, … } | object { additionalCode, … } |
| 117 | + Details: |
| 118 | + * options has an unknown property 'unknown'. These properties are valid: |
| 119 | + object { imports, … } | object { wrapper, … } | object { additionalCode, … } |
| 120 | + * options misses the property 'imports' | should be any non-object. |
| 121 | + * options misses the property 'wrapper' | should be any non-object. |
| 122 | + * options misses the property 'additionalCode' | should be any non-object." |
| 123 | +`; |
| 124 | +
|
| 125 | +exports[`validate options should throw an error on the "unknown" option with "[]" value 1`] = ` |
| 126 | +"Invalid options object. Imports loader has been initialized using an options object that does not match the API schema. |
| 127 | + - options should be one of these: |
| 128 | + object { imports, … } | object { wrapper, … } | object { additionalCode, … } |
| 129 | + Details: |
| 130 | + * options has an unknown property 'unknown'. These properties are valid: |
| 131 | + object { imports, … } | object { wrapper, … } | object { additionalCode, … } |
| 132 | + * options misses the property 'imports' | should be any non-object. |
| 133 | + * options misses the property 'wrapper' | should be any non-object. |
| 134 | + * options misses the property 'additionalCode' | should be any non-object." |
| 135 | +`; |
| 136 | +
|
| 137 | +exports[`validate options should throw an error on the "unknown" option with "{"foo":"bar"}" value 1`] = ` |
| 138 | +"Invalid options object. Imports loader has been initialized using an options object that does not match the API schema. |
| 139 | + - options should be one of these: |
| 140 | + object { imports, … } | object { wrapper, … } | object { additionalCode, … } |
| 141 | + Details: |
| 142 | + * options has an unknown property 'unknown'. These properties are valid: |
| 143 | + object { imports, … } | object { wrapper, … } | object { additionalCode, … } |
| 144 | + * options misses the property 'imports' | should be any non-object. |
| 145 | + * options misses the property 'wrapper' | should be any non-object. |
| 146 | + * options misses the property 'additionalCode' | should be any non-object." |
| 147 | +`; |
| 148 | +
|
| 149 | +exports[`validate options should throw an error on the "unknown" option with "{}" value 1`] = ` |
| 150 | +"Invalid options object. Imports loader has been initialized using an options object that does not match the API schema. |
| 151 | + - options should be one of these: |
| 152 | + object { imports, … } | object { wrapper, … } | object { additionalCode, … } |
| 153 | + Details: |
| 154 | + * options has an unknown property 'unknown'. These properties are valid: |
| 155 | + object { imports, … } | object { wrapper, … } | object { additionalCode, … } |
| 156 | + * options misses the property 'imports' | should be any non-object. |
| 157 | + * options misses the property 'wrapper' | should be any non-object. |
| 158 | + * options misses the property 'additionalCode' | should be any non-object." |
| 159 | +`; |
| 160 | +
|
| 161 | +exports[`validate options should throw an error on the "unknown" option with "1" value 1`] = ` |
| 162 | +"Invalid options object. Imports loader has been initialized using an options object that does not match the API schema. |
| 163 | + - options should be one of these: |
| 164 | + object { imports, … } | object { wrapper, … } | object { additionalCode, … } |
| 165 | + Details: |
| 166 | + * options has an unknown property 'unknown'. These properties are valid: |
| 167 | + object { imports, … } | object { wrapper, … } | object { additionalCode, … } |
| 168 | + * options misses the property 'imports' | should be any non-object. |
| 169 | + * options misses the property 'wrapper' | should be any non-object. |
| 170 | + * options misses the property 'additionalCode' | should be any non-object." |
| 171 | +`; |
| 172 | +
|
| 173 | +exports[`validate options should throw an error on the "unknown" option with "false" value 1`] = ` |
| 174 | +"Invalid options object. Imports loader has been initialized using an options object that does not match the API schema. |
| 175 | + - options should be one of these: |
| 176 | + object { imports, … } | object { wrapper, … } | object { additionalCode, … } |
| 177 | + Details: |
| 178 | + * options has an unknown property 'unknown'. These properties are valid: |
| 179 | + object { imports, … } | object { wrapper, … } | object { additionalCode, … } |
| 180 | + * options misses the property 'imports' | should be any non-object. |
| 181 | + * options misses the property 'wrapper' | should be any non-object. |
| 182 | + * options misses the property 'additionalCode' | should be any non-object." |
| 183 | +`; |
| 184 | +
|
| 185 | +exports[`validate options should throw an error on the "unknown" option with "test" value 1`] = ` |
| 186 | +"Invalid options object. Imports loader has been initialized using an options object that does not match the API schema. |
| 187 | + - options should be one of these: |
| 188 | + object { imports, … } | object { wrapper, … } | object { additionalCode, … } |
| 189 | + Details: |
| 190 | + * options has an unknown property 'unknown'. These properties are valid: |
| 191 | + object { imports, … } | object { wrapper, … } | object { additionalCode, … } |
| 192 | + * options misses the property 'imports' | should be any non-object. |
| 193 | + * options misses the property 'wrapper' | should be any non-object. |
| 194 | + * options misses the property 'additionalCode' | should be any non-object." |
| 195 | +`; |
| 196 | +
|
| 197 | +exports[`validate options should throw an error on the "unknown" option with "true" value 1`] = ` |
| 198 | +"Invalid options object. Imports loader has been initialized using an options object that does not match the API schema. |
| 199 | + - options should be one of these: |
| 200 | + object { imports, … } | object { wrapper, … } | object { additionalCode, … } |
| 201 | + Details: |
| 202 | + * options has an unknown property 'unknown'. These properties are valid: |
| 203 | + object { imports, … } | object { wrapper, … } | object { additionalCode, … } |
| 204 | + * options misses the property 'imports' | should be any non-object. |
| 205 | + * options misses the property 'wrapper' | should be any non-object. |
| 206 | + * options misses the property 'additionalCode' | should be any non-object." |
| 207 | +`; |
| 208 | +
|
| 209 | +exports[`validate options should throw an error on the "wrapper" option with "[""]" value 1`] = ` |
| 210 | +"Invalid options object. Imports loader has been initialized using an options object that does not match the API schema. |
| 211 | + - options.wrapper[0] should be an non-empty string." |
| 212 | +`; |
| 213 | +
|
| 214 | +exports[`validate options should throw an error on the "wrapper" option with "[]" value 1`] = ` |
| 215 | +"Invalid options object. Imports loader has been initialized using an options object that does not match the API schema. |
| 216 | + - options.wrapper should be an non-empty array." |
| 217 | +`; |
| 218 | +
|
| 219 | +exports[`validate options should throw an error on the "wrapper" option with "false" value 1`] = ` |
| 220 | +"Invalid options object. Imports loader has been initialized using an options object that does not match the API schema. |
| 221 | + - options.wrapper should be one of these: |
| 222 | + non-empty string | [non-empty string, ...] (should not have fewer than 1 item) |
| 223 | + Details: |
| 224 | + * options.wrapper should be a non-empty string. |
| 225 | + * options.wrapper should be an array: |
| 226 | + [non-empty string, ...] (should not have fewer than 1 item)" |
| 227 | +`; |
| 228 | +
|
| 229 | +exports[`validate options should throw an error on the "wrapper" option with "true" value 1`] = ` |
| 230 | +"Invalid options object. Imports loader has been initialized using an options object that does not match the API schema. |
| 231 | + - options.wrapper should be one of these: |
| 232 | + non-empty string | [non-empty string, ...] (should not have fewer than 1 item) |
| 233 | + Details: |
| 234 | + * options.wrapper should be a non-empty string. |
| 235 | + * options.wrapper should be an array: |
| 236 | + [non-empty string, ...] (should not have fewer than 1 item)" |
| 237 | +`; |
0 commit comments