@@ -182,7 +182,7 @@ describe('process css', () => {
182182 content : 'content foo color' ,
183183 lang : 'scss' ,
184184 }
185- mockCssFiles . set ( transformSymbol ( resolve ( '/play/src/assets/test.css' ) ) , mockCSSFilesContent )
185+ mockCssFiles . set ( transformSymbol ( '/play/src/assets/test.css' ) , mockCSSFilesContent )
186186 const mockDescriptor = {
187187 styles : [ {
188188 content : '@import "@/assets/test";\n'
@@ -191,7 +191,7 @@ describe('process css', () => {
191191 + ' }' ,
192192 } ] ,
193193 }
194- const mockId = transformSymbol ( resolve ( '/play/src/App.vue' ) )
194+ const mockId = transformSymbol ( '/play/src/App.vue' )
195195 const res = getVBindVariableListByPath (
196196 mockDescriptor as any ,
197197 mockId ,
@@ -296,7 +296,7 @@ describe('handleAlias function', () => {
296296 const path = 'path/to/some/file'
297297 const alias = { '@' : 'alias-path' }
298298 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' )
300300 } )
301301
302302 test ( 'idDirPath & alias matched' , ( ) => {
@@ -309,6 +309,6 @@ describe('handleAlias function', () => {
309309 test ( 'no alias and idDirPath' , ( ) => {
310310 const path = 'path/to/some/file'
311311 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' )
313313 } )
314314} )
0 commit comments