@@ -23,8 +23,8 @@ Object.keys( pipelines ).forEach( dirname => {
2323 let expected = normalize ( fs . readFileSync ( path . join ( testDir , testCase , "expected.css" ) , "utf-8" ) )
2424 let loader = new FileSystemLoader ( testDir , pipelines [ dirname ] )
2525 let expectedTokens = JSON . parse ( fs . readFileSync ( path . join ( testDir , testCase , "expected.json" ) , "utf-8" ) )
26- loader . fetch ( `${ testCase } /source.css` , "/" ) . then ( tokens => {
27- assert . equal ( loader . finalSource , expected )
26+ loader . fetch ( `${ testCase } /source.css` , ". /" ) . then ( tokens => {
27+ assert . equal ( normalize ( loader . finalSource ) , expected )
2828 assert . equal ( JSON . stringify ( tokens ) , JSON . stringify ( expectedTokens ) )
2929 } ) . then ( done , done )
3030 } ) ;
@@ -43,9 +43,9 @@ describe( 'multiple sources', () => {
4343 let expected = normalize ( fs . readFileSync ( path . join ( testDir , testCase , "expected.css" ) , "utf-8" ) )
4444 let loader = new FileSystemLoader ( testDir , pipelines [ dirname ] )
4545 let expectedTokens = JSON . parse ( fs . readFileSync ( path . join ( testDir , testCase , "expected.json" ) , "utf-8" ) )
46- loader . fetch ( `${ testCase } /source1.css` , "/" ) . then ( tokens1 => {
47- loader . fetch ( `${ testCase } /source2.css` , "/" ) . then ( tokens2 => {
48- assert . equal ( loader . finalSource , expected )
46+ loader . fetch ( `${ testCase } /source1.css` , ". /" ) . then ( tokens1 => {
47+ loader . fetch ( `${ testCase } /source2.css` , ". /" ) . then ( tokens2 => {
48+ assert . equal ( normalize ( loader . finalSource ) , expected )
4949 const tokens = Object . assign ( { } , tokens1 , tokens2 ) ;
5050 assert . equal ( JSON . stringify ( tokens ) , JSON . stringify ( expectedTokens ) )
5151 } ) . then ( done , done )
0 commit comments