|
1 | 1 | // Jest Snapshot v1, https://goo.gl/fbAQLP |
2 | 2 |
|
3 | 3 | exports[`filter option should exclude some files 1`] = ` |
4 | | -Object { |
5 | | - "css": Array [], |
6 | | - "js": Array [], |
| 4 | +{ |
| 5 | + "css": [], |
| 6 | + "js": [], |
7 | 7 | } |
8 | 8 | `; |
9 | 9 |
|
10 | 10 | exports[`filter option should include some files 1`] = ` |
11 | | -Object { |
12 | | - "css": Array [], |
13 | | - "js": Array [ |
| 11 | +{ |
| 12 | + "css": [], |
| 13 | + "js": [ |
14 | 14 | "vendor/my-file.js", |
15 | 15 | ], |
16 | 16 | } |
17 | 17 | `; |
18 | 18 |
|
19 | 19 | exports[`filter option should include some files with string option 1`] = ` |
20 | | -Object { |
21 | | - "css": Array [], |
22 | | - "js": Array [ |
| 20 | +{ |
| 21 | + "css": [], |
| 22 | + "js": [ |
23 | 23 | "vendor/my-file.js", |
24 | 24 | ], |
25 | 25 | } |
26 | 26 | `; |
27 | 27 |
|
28 | 28 | exports[`should add file missing "/" to public path 1`] = ` |
29 | | -Object { |
30 | | - "css": Array [], |
31 | | - "js": Array [ |
| 29 | +{ |
| 30 | + "css": [], |
| 31 | + "js": [ |
32 | 32 | "vendor/my-file.js", |
33 | 33 | ], |
34 | 34 | } |
35 | 35 | `; |
36 | 36 |
|
37 | 37 | exports[`should add file using compilation's publicPath 1`] = ` |
38 | | -Object { |
39 | | - "css": Array [], |
40 | | - "js": Array [ |
| 38 | +{ |
| 39 | + "css": [], |
| 40 | + "js": [ |
41 | 41 | "vendor/my-file.js", |
42 | 42 | ], |
43 | 43 | } |
44 | 44 | `; |
45 | 45 |
|
46 | 46 | exports[`should add sourcemap and gzipped files to compilation 1`] = ` |
47 | | -Object { |
48 | | - "css": Array [], |
49 | | - "js": Array [ |
| 47 | +{ |
| 48 | + "css": [], |
| 49 | + "js": [ |
50 | 50 | "my-file.js", |
51 | 51 | ], |
52 | 52 | } |
53 | 53 | `; |
54 | 54 |
|
55 | 55 | exports[`should add to css if \`typeOfAsset\` is css 1`] = ` |
56 | | -Object { |
57 | | - "css": Array [ |
| 56 | +{ |
| 57 | + "css": [ |
58 | 58 | "my-file.css", |
59 | 59 | ], |
60 | | - "js": Array [], |
| 60 | + "js": [], |
61 | 61 | } |
62 | 62 | `; |
63 | 63 |
|
64 | 64 | exports[`should include hash of file content if option is set 1`] = ` |
65 | | -Object { |
66 | | - "css": Array [], |
67 | | - "js": Array [ |
| 65 | +{ |
| 66 | + "css": [], |
| 67 | + "js": [ |
68 | 68 | "my-file.js?5329c141291f07ab06c6", |
69 | 69 | ], |
70 | 70 | } |
71 | 71 | `; |
72 | 72 |
|
73 | 73 | exports[`should invoke callback on error 1`] = ` |
74 | | -Array [ |
| 74 | +[ |
75 | 75 | [Error: No filepath defined], |
76 | 76 | [Error: No filepath defined], |
77 | 77 | ] |
78 | 78 | `; |
79 | 79 |
|
80 | 80 | exports[`should reject on error 1`] = ` |
81 | | -Array [ |
| 81 | +[ |
82 | 82 | [Error: No filepath defined], |
83 | 83 | [Error: No filepath defined], |
84 | 84 | ] |
85 | 85 | `; |
86 | 86 |
|
87 | 87 | exports[`should replace compilation assets key if \`outputPath\` is set 1`] = ` |
88 | | -Object { |
89 | | - "css": Array [], |
90 | | - "js": Array [ |
| 88 | +{ |
| 89 | + "css": [], |
| 90 | + "js": [ |
91 | 91 | "some-file.js", |
92 | 92 | ], |
93 | 93 | } |
94 | 94 | `; |
95 | 95 |
|
96 | 96 | exports[`should skip adding sourcemap and gzipped files to compilation if set to false 1`] = ` |
97 | | -Object { |
98 | | - "css": Array [], |
99 | | - "js": Array [ |
| 97 | +{ |
| 98 | + "css": [], |
| 99 | + "js": [ |
100 | 100 | "my-file.js", |
101 | 101 | ], |
102 | 102 | } |
103 | 103 | `; |
104 | 104 |
|
105 | 105 | exports[`should use the hash from HtmlWebpackPlugin if option is set 1`] = ` |
106 | | -Object { |
107 | | - "css": Array [], |
108 | | - "js": Array [ |
| 106 | +{ |
| 107 | + "css": [], |
| 108 | + "js": [ |
109 | 109 | "my-file.js?testHash", |
110 | 110 | ], |
111 | 111 | } |
112 | 112 | `; |
113 | 113 |
|
114 | 114 | exports[`should used passed in publicPath 1`] = ` |
115 | | -Object { |
116 | | - "css": Array [], |
117 | | - "js": Array [ |
| 115 | +{ |
| 116 | + "css": [], |
| 117 | + "js": [ |
118 | 118 | "pp/my-file.js", |
119 | 119 | ], |
120 | 120 | } |
121 | 121 | `; |
122 | 122 |
|
123 | | -exports[`throws of both filepath and glob is defined 1`] = `"Both filepath and glob defined in {\\"filepath\\":\\"my-file.js\\",\\"glob\\":\\"my-file.js\\"} - only use one of them"`; |
| 123 | +exports[`throws of both filepath and glob is defined 1`] = `"Both filepath and glob defined in {"filepath":"my-file.js","glob":"my-file.js"} - only use one of them"`; |
0 commit comments