Skip to content

Commit 0457645

Browse files
author
Nathan Reid
committed
All tests except for "test-cases should compose node module" are working on Windows and Mac.
1 parent b8f976d commit 0457645

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

test/test-cases.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)