@@ -51,11 +51,11 @@ describe('rollup-plugin-import-meta-assets', () => {
51
51
52
52
expect ( output . length ) . to . equal ( 6 ) ;
53
53
expectChunk ( output , 'snapshots/simple-bundle.js' , 'simple-bundle.js' , [
54
- expectAsset ( output , 'snapshots/one.svg' , 'one.svg' , 'assets/one-ZInu4dBJ .svg' ) ,
55
- expectAsset ( output , 'snapshots/two.svg' , 'two.svg' , 'assets/two--yckvrYd .svg' ) ,
56
- expectAsset ( output , 'snapshots/three.svg' , 'three.svg' , 'assets/three-CDdgprDC .svg' ) ,
57
- expectAsset ( output , 'snapshots/four.svg' , 'four.svg' , 'assets/four-lJVunLww .svg' ) ,
58
- expectAsset ( output , 'snapshots/five' , 'five' , 'assets/five-Z74_0e9C ' ) ,
54
+ expectAsset ( output , 'snapshots/one.svg' , 'one.svg' , 'assets/one-Bkie7h0E .svg' ) ,
55
+ expectAsset ( output , 'snapshots/two.svg' , 'two.svg' , 'assets/two-D7JyS-th .svg' ) ,
56
+ expectAsset ( output , 'snapshots/three.svg' , 'three.svg' , 'assets/three-IN2CmsMK .svg' ) ,
57
+ expectAsset ( output , 'snapshots/four.svg' , 'four.svg' , 'assets/four-CUlW6cvD .svg' ) ,
58
+ expectAsset ( output , 'snapshots/five' , 'five' , 'assets/five-Bnvj_R70 ' ) ,
59
59
] ) ;
60
60
} ) ;
61
61
@@ -80,11 +80,11 @@ describe('rollup-plugin-import-meta-assets', () => {
80
80
81
81
expect ( output . length ) . to . equal ( 6 ) ;
82
82
expectChunk ( output , 'snapshots/transform-bundle.js' , 'transform-bundle.js' , [
83
- expectAsset ( output , 'snapshots/one.min.svg' , 'one.svg' , 'assets/one-PkYUFgN1 .svg' ) ,
84
- expectAsset ( output , 'snapshots/two.min.svg' , 'two.svg' , 'assets/two-mXcSFMIh .svg' ) ,
85
- expectAsset ( output , 'snapshots/three.min.svg' , 'three.svg' , 'assets/three-LRYckR_0 .svg' ) ,
86
- expectAsset ( output , 'snapshots/four.min.svg' , 'four.svg' , 'assets/four-rNTiHfqi .svg' ) ,
87
- expectAsset ( output , 'snapshots/image.jpg' , 'image.jpg' , 'assets/image-vdjfMj42 .jpg' ) ,
83
+ expectAsset ( output , 'snapshots/one.min.svg' , 'one.svg' , 'assets/one--RhQWA3U .svg' ) ,
84
+ expectAsset ( output , 'snapshots/two.min.svg' , 'two.svg' , 'assets/two-CZdxIUwi .svg' ) ,
85
+ expectAsset ( output , 'snapshots/three.min.svg' , 'three.svg' , 'assets/three-tFhyRH_R .svg' ) ,
86
+ expectAsset ( output , 'snapshots/four.min.svg' , 'four.svg' , 'assets/four-Cs1OId-q .svg' ) ,
87
+ expectAsset ( output , 'snapshots/image.jpg' , 'image.jpg' , 'assets/image-C92N8yPj .jpg' ) ,
88
88
] ) ;
89
89
} ) ;
90
90
@@ -109,10 +109,10 @@ describe('rollup-plugin-import-meta-assets', () => {
109
109
110
110
expect ( output . length ) . to . equal ( 5 ) ;
111
111
expectChunk ( output , 'snapshots/transform-bundle-ignored.js' , 'transform-bundle-ignored.js' , [
112
- expectAsset ( output , 'snapshots/one.min.svg' , 'one.svg' , 'assets/one-PkYUFgN1 .svg' ) ,
113
- expectAsset ( output , 'snapshots/two.min.svg' , 'two.svg' , 'assets/two-mXcSFMIh .svg' ) ,
114
- expectAsset ( output , 'snapshots/three.min.svg' , 'three.svg' , 'assets/three-LRYckR_0 .svg' ) ,
115
- expectAsset ( output , 'snapshots/four.min.svg' , 'four.svg' , 'assets/four-rNTiHfqi .svg' ) ,
112
+ expectAsset ( output , 'snapshots/one.min.svg' , 'one.svg' , 'assets/one--RhQWA3U .svg' ) ,
113
+ expectAsset ( output , 'snapshots/two.min.svg' , 'two.svg' , 'assets/two-CZdxIUwi .svg' ) ,
114
+ expectAsset ( output , 'snapshots/three.min.svg' , 'three.svg' , 'assets/three-tFhyRH_R .svg' ) ,
115
+ expectAsset ( output , 'snapshots/four.min.svg' , 'four.svg' , 'assets/four-Cs1OId-q .svg' ) ,
116
116
] ) ;
117
117
} ) ;
118
118
@@ -127,10 +127,10 @@ describe('rollup-plugin-import-meta-assets', () => {
127
127
128
128
expect ( output . length ) . to . equal ( 5 ) ;
129
129
expectChunk ( output , 'snapshots/multi-level-bundle.js' , 'multi-level-bundle.js' , [
130
- expectAsset ( output , 'snapshots/one.svg' , 'one.svg' , 'assets/one-ZInu4dBJ .svg' ) ,
131
- expectAsset ( output , 'snapshots/two.svg' , 'two.svg' , 'assets/two--yckvrYd .svg' ) ,
132
- expectAsset ( output , 'snapshots/three.svg' , 'three.svg' , 'assets/three-CDdgprDC .svg' ) ,
133
- expectAsset ( output , 'snapshots/four.svg' , 'four.svg' , 'assets/four-lJVunLww .svg' ) ,
130
+ expectAsset ( output , 'snapshots/one.svg' , 'one.svg' , 'assets/one-Bkie7h0E .svg' ) ,
131
+ expectAsset ( output , 'snapshots/two.svg' , 'two.svg' , 'assets/two-D7JyS-th .svg' ) ,
132
+ expectAsset ( output , 'snapshots/three.svg' , 'three.svg' , 'assets/three-IN2CmsMK .svg' ) ,
133
+ expectAsset ( output , 'snapshots/four.svg' , 'four.svg' , 'assets/four-CUlW6cvD .svg' ) ,
134
134
] ) ;
135
135
} ) ;
136
136
@@ -149,10 +149,10 @@ describe('rollup-plugin-import-meta-assets', () => {
149
149
150
150
expect ( output . length ) . to . equal ( 5 ) ;
151
151
expectChunk ( output , 'snapshots/multi-level-bundle.js' , 'multi-level-bundle.js' , [
152
- expectAsset ( output , 'snapshots/one.svg' , 'one.svg' , 'assets/one-ZInu4dBJ .svg' ) ,
153
- expectAsset ( output , 'snapshots/two.svg' , 'two.svg' , 'assets/two--yckvrYd .svg' ) ,
154
- expectAsset ( output , 'snapshots/three.svg' , 'three.svg' , 'assets/three-CDdgprDC .svg' ) ,
155
- expectAsset ( output , 'snapshots/four.svg' , 'four.svg' , 'assets/four-lJVunLww .svg' ) ,
152
+ expectAsset ( output , 'snapshots/one.svg' , 'one.svg' , 'assets/one-Bkie7h0E .svg' ) ,
153
+ expectAsset ( output , 'snapshots/two.svg' , 'two.svg' , 'assets/two-D7JyS-th .svg' ) ,
154
+ expectAsset ( output , 'snapshots/three.svg' , 'three.svg' , 'assets/three-IN2CmsMK .svg' ) ,
155
+ expectAsset ( output , 'snapshots/four.svg' , 'four.svg' , 'assets/four-CUlW6cvD .svg' ) ,
156
156
] ) ;
157
157
} ) ;
158
158
@@ -175,15 +175,15 @@ describe('rollup-plugin-import-meta-assets', () => {
175
175
'snapshots/different-asset-levels-bundle.js' ,
176
176
'different-asset-levels-bundle.js' ,
177
177
[
178
- expectAsset ( output , 'snapshots/one.svg' , 'one-deep.svg' , 'assets/one-deep-ZInu4dBJ .svg' ) ,
179
- expectAsset ( output , 'snapshots/two.svg' , 'two-deep.svg' , 'assets/two-deep--yckvrYd .svg' ) ,
178
+ expectAsset ( output , 'snapshots/one.svg' , 'one-deep.svg' , 'assets/one-deep-Bkie7h0E .svg' ) ,
179
+ expectAsset ( output , 'snapshots/two.svg' , 'two-deep.svg' , 'assets/two-deep-D7JyS-th .svg' ) ,
180
180
expectAsset (
181
181
output ,
182
182
'snapshots/three.svg' ,
183
183
'three-deep.svg' ,
184
- 'assets/three-deep-CDdgprDC .svg' ,
184
+ 'assets/three-deep-IN2CmsMK .svg' ,
185
185
) ,
186
- expectAsset ( output , 'snapshots/four.svg' , 'four-deep.svg' , 'assets/four-deep-lJVunLww .svg' ) ,
186
+ expectAsset ( output , 'snapshots/four.svg' , 'four-deep.svg' , 'assets/four-deep-CUlW6cvD .svg' ) ,
187
187
] ,
188
188
) ;
189
189
} ) ;
@@ -215,10 +215,10 @@ describe('rollup-plugin-import-meta-assets', () => {
215
215
expectChunk ( output , 'snapshots/one-bundle.js' , 'one-bundle.js' , [ ] ) ;
216
216
expectChunk ( output , 'snapshots/two-bundle.js' , 'two-bundle.js' , [ ] ) ;
217
217
expectChunk ( output , 'snapshots/three-bundle.js' , 'three-bundle.js' , [
218
- expectAsset ( output , 'snapshots/three.svg' , 'three.svg' , 'assets/three-CDdgprDC .svg' ) ,
218
+ expectAsset ( output , 'snapshots/three.svg' , 'three.svg' , 'assets/three-IN2CmsMK .svg' ) ,
219
219
] ) ;
220
220
expectChunk ( output , 'snapshots/four-bundle.js' , 'four-bundle.js' , [
221
- expectAsset ( output , 'snapshots/four.svg' , 'four.svg' , 'assets/four-lJVunLww .svg' ) ,
221
+ expectAsset ( output , 'snapshots/four.svg' , 'four.svg' , 'assets/four-CUlW6cvD .svg' ) ,
222
222
] ) ;
223
223
} ) ;
224
224
@@ -269,9 +269,9 @@ describe('rollup-plugin-import-meta-assets', () => {
269
269
270
270
expect ( output . length ) . to . equal ( 4 ) ;
271
271
expectChunk ( output , 'snapshots/dynamic-vars.js' , 'dynamic-vars.js' , [
272
- expectAsset ( output , 'snapshots/three.svg' , 'three.svg' , 'assets/three-CDdgprDC .svg' ) ,
273
- expectAsset ( output , 'snapshots/two.svg' , 'two.svg' , 'assets/two--yckvrYd .svg' ) ,
274
- expectAsset ( output , 'snapshots/one.svg' , 'one.svg' , 'assets/one-ZInu4dBJ .svg' ) ,
272
+ expectAsset ( output , 'snapshots/three.svg' , 'three.svg' , 'assets/three-IN2CmsMK .svg' ) ,
273
+ expectAsset ( output , 'snapshots/two.svg' , 'two.svg' , 'assets/two-D7JyS-th .svg' ) ,
274
+ expectAsset ( output , 'snapshots/one.svg' , 'one.svg' , 'assets/one-Bkie7h0E .svg' ) ,
275
275
] ) ;
276
276
} ) ;
277
277
@@ -288,10 +288,10 @@ describe('rollup-plugin-import-meta-assets', () => {
288
288
289
289
expect ( output . length ) . to . equal ( 5 ) ;
290
290
expectChunk ( output , 'snapshots/directories-ignored.js' , 'directories-ignored.js' , [
291
- expectAsset ( output , 'snapshots/one.svg' , 'one.svg' , 'assets/one-ZInu4dBJ .svg' ) ,
292
- expectAsset ( output , 'snapshots/two.svg' , 'two.svg' , 'assets/two--yckvrYd .svg' ) ,
293
- expectAsset ( output , 'snapshots/three.svg' , 'three.svg' , 'assets/three-CDdgprDC .svg' ) ,
294
- expectAsset ( output , 'snapshots/four.svg' , 'four.svg' , 'assets/four-lJVunLww .svg' ) ,
291
+ expectAsset ( output , 'snapshots/one.svg' , 'one.svg' , 'assets/one-Bkie7h0E .svg' ) ,
292
+ expectAsset ( output , 'snapshots/two.svg' , 'two.svg' , 'assets/two-D7JyS-th .svg' ) ,
293
+ expectAsset ( output , 'snapshots/three.svg' , 'three.svg' , 'assets/three-IN2CmsMK .svg' ) ,
294
+ expectAsset ( output , 'snapshots/four.svg' , 'four.svg' , 'assets/four-CUlW6cvD .svg' ) ,
295
295
] ) ;
296
296
} ) ;
297
297
} ) ;
0 commit comments