File tree 1 file changed +5
-3
lines changed
packages/rollup-plugin-import-meta-assets/test
1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -237,7 +237,9 @@ describe('rollup-plugin-import-meta-assets', () => {
237
237
error = e ;
238
238
}
239
239
240
- expect ( error . message ) . to . match ( / n o s u c h f i l e o r d i r e c t o r y / ) ;
240
+ expect ( error . message ) . to . eq (
241
+ `Unable to resolve "/absolute-path.svg" from "/home/loic/git/web/packages/rollup-plugin-import-meta-assets/test/fixtures/bad-url-entrypoint.js"` ,
242
+ ) ;
241
243
} ) ;
242
244
243
245
it ( 'bad URL example with warnOnError: true' , async ( ) => {
@@ -251,10 +253,10 @@ describe('rollup-plugin-import-meta-assets', () => {
251
253
252
254
expect ( consoleStub . callCount ) . to . equal ( 2 ) ;
253
255
expect ( consoleStub . getCall ( 0 ) . args [ 0 ] ) . to . match (
254
- / E N O E N T : n o s u c h f i l e o r d i r e c t o r y , o p e n ' . * [ / \\ ] a b s o l u t e - p a t h \. s v g ' / ,
256
+ / \( r o l l u p - p l u g i n - i m p o r t - m e t a - a s s e t s p l u g i n \) t e s t [ / \\ ] f i x t u r e s [ / \\ ] b a d - u r l - e n t r y p o i n t \. j s \( 1 : 2 6 \) U n a b l e t o r e s o l v e " [ / \\ ] a b s o l u t e - p a t h \. s v g " f r o m " . * b a d - u r l - e n t r y p o i n t \. j s " / ,
255
257
) ;
256
258
expect ( consoleStub . getCall ( 1 ) . args [ 0 ] ) . to . match (
257
- / E N O E N T : n o s u c h f i l e o r d i r e c t o r y , o p e n ' . * [ / \\ ] m i s s i n g - r e l a t i v e - p a t h \ .s v g ' / ,
259
+ / \( r o l l u p - p l u g i n - i m p o r t - m e t a - a s s e t s p l u g i n \) t e s t [ / \\ ] f i x t u r e s [ / \\ ] b a d - u r l - e n t r y p o i n t \. j s \( 2 : 2 6 \) U n a b l e t o r e s o l v e " .. [ / \\ ] .. [ / \\ ] m i s s i n g - r e l a t i v e - p a t h .s v g " f r o m " . * b a d - u r l - e n t r y p o i n t \. j s " / ,
258
260
) ;
259
261
} ) ;
260
262
You can’t perform that action at this time.
0 commit comments