@@ -23,8 +23,8 @@ Object.keys( pipelines ).forEach( dirname => {
23
23
let expected = normalize ( fs . readFileSync ( path . join ( testDir , testCase , "expected.css" ) , "utf-8" ) )
24
24
let loader = new FileSystemLoader ( testDir , pipelines [ dirname ] )
25
25
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 )
28
28
assert . equal ( JSON . stringify ( tokens ) , JSON . stringify ( expectedTokens ) )
29
29
} ) . then ( done , done )
30
30
} ) ;
@@ -43,9 +43,9 @@ describe( 'multiple sources', () => {
43
43
let expected = normalize ( fs . readFileSync ( path . join ( testDir , testCase , "expected.css" ) , "utf-8" ) )
44
44
let loader = new FileSystemLoader ( testDir , pipelines [ dirname ] )
45
45
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 )
49
49
const tokens = Object . assign ( { } , tokens1 , tokens2 ) ;
50
50
assert . equal ( JSON . stringify ( tokens ) , JSON . stringify ( expectedTokens ) )
51
51
} ) . then ( done , done )
0 commit comments