@@ -182,7 +182,7 @@ describe('process css', () => {
182
182
content : 'content foo color' ,
183
183
lang : 'scss' ,
184
184
}
185
- mockCssFiles . set ( transformSymbol ( resolve ( '/play/src/assets/test.css' ) ) , mockCSSFilesContent )
185
+ mockCssFiles . set ( transformSymbol ( '/play/src/assets/test.css' ) , mockCSSFilesContent )
186
186
const mockDescriptor = {
187
187
styles : [ {
188
188
content : '@import "@/assets/test";\n'
@@ -191,7 +191,7 @@ describe('process css', () => {
191
191
+ ' }' ,
192
192
} ] ,
193
193
}
194
- const mockId = transformSymbol ( resolve ( '/play/src/App.vue' ) )
194
+ const mockId = transformSymbol ( '/play/src/App.vue' )
195
195
const res = getVBindVariableListByPath (
196
196
mockDescriptor as any ,
197
197
mockId ,
@@ -296,7 +296,7 @@ describe('handleAlias function', () => {
296
296
const path = 'path/to/some/file'
297
297
const alias = { '@' : 'alias-path' }
298
298
const idDirPath = '/some/directory'
299
- expect ( handleAlias ( path , alias , idDirPath ) ) . toBe ( '/some/directory/path/to/some/file' )
299
+ expect ( handleAlias ( path , alias , idDirPath ) ) . toContain ( '/some/directory/path/to/some/file' )
300
300
} )
301
301
302
302
test ( 'idDirPath & alias matched' , ( ) => {
@@ -309,6 +309,6 @@ describe('handleAlias function', () => {
309
309
test ( 'no alias and idDirPath' , ( ) => {
310
310
const path = 'path/to/some/file'
311
311
const idDirPath = '/some/directory'
312
- expect ( handleAlias ( path , undefined , idDirPath ) ) . toBe ( '/some/directory/path/to/some/file' )
312
+ expect ( handleAlias ( path , undefined , idDirPath ) ) . toContain ( '/some/directory/path/to/some/file' )
313
313
} )
314
314
} )
0 commit comments