@@ -51,11 +51,11 @@ describe('rollup-plugin-import-meta-assets', () => {
5151
5252 expect ( output . length ) . to . equal ( 6 ) ;
5353 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 ' ) ,
5959 ] ) ;
6060 } ) ;
6161
@@ -80,11 +80,11 @@ describe('rollup-plugin-import-meta-assets', () => {
8080
8181 expect ( output . length ) . to . equal ( 6 ) ;
8282 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' ) ,
8888 ] ) ;
8989 } ) ;
9090
@@ -109,10 +109,10 @@ describe('rollup-plugin-import-meta-assets', () => {
109109
110110 expect ( output . length ) . to . equal ( 5 ) ;
111111 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' ) ,
116116 ] ) ;
117117 } ) ;
118118
@@ -127,10 +127,10 @@ describe('rollup-plugin-import-meta-assets', () => {
127127
128128 expect ( output . length ) . to . equal ( 5 ) ;
129129 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' ) ,
134134 ] ) ;
135135 } ) ;
136136
@@ -149,10 +149,10 @@ describe('rollup-plugin-import-meta-assets', () => {
149149
150150 expect ( output . length ) . to . equal ( 5 ) ;
151151 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' ) ,
156156 ] ) ;
157157 } ) ;
158158
@@ -175,15 +175,15 @@ describe('rollup-plugin-import-meta-assets', () => {
175175 'snapshots/different-asset-levels-bundle.js' ,
176176 'different-asset-levels-bundle.js' ,
177177 [
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' ) ,
180180 expectAsset (
181181 output ,
182182 'snapshots/three.svg' ,
183183 'three-deep.svg' ,
184- 'assets/three-deep-CDdgprDC .svg' ,
184+ 'assets/three-deep-IN2CmsMK .svg' ,
185185 ) ,
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' ) ,
187187 ] ,
188188 ) ;
189189 } ) ;
@@ -215,10 +215,10 @@ describe('rollup-plugin-import-meta-assets', () => {
215215 expectChunk ( output , 'snapshots/one-bundle.js' , 'one-bundle.js' , [ ] ) ;
216216 expectChunk ( output , 'snapshots/two-bundle.js' , 'two-bundle.js' , [ ] ) ;
217217 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' ) ,
219219 ] ) ;
220220 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' ) ,
222222 ] ) ;
223223 } ) ;
224224
@@ -269,9 +269,9 @@ describe('rollup-plugin-import-meta-assets', () => {
269269
270270 expect ( output . length ) . to . equal ( 4 ) ;
271271 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' ) ,
275275 ] ) ;
276276 } ) ;
277277
@@ -288,10 +288,10 @@ describe('rollup-plugin-import-meta-assets', () => {
288288
289289 expect ( output . length ) . to . equal ( 5 ) ;
290290 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' ) ,
295295 ] ) ;
296296 } ) ;
297297} ) ;
0 commit comments