@@ -14,7 +14,7 @@ import atImport from ".."
1414test . serial ( "should accept file" , t => {
1515 return compareFixtures ( t , "custom-resolve-file" , {
1616 resolve : ( ) => {
17- return path . resolve ( "fixtures/imports/custom-resolve-1.css" )
17+ return path . resolve ( "test/ fixtures/imports/custom-resolve-1.css" )
1818 } ,
1919 } )
2020} )
@@ -23,7 +23,7 @@ test.serial("should accept promised file", t => {
2323 return compareFixtures ( t , "custom-resolve-file" , {
2424 resolve : ( ) => {
2525 return Promise . resolve (
26- path . resolve ( "fixtures/imports/custom-resolve-1.css" )
26+ path . resolve ( "test/ fixtures/imports/custom-resolve-1.css" )
2727 )
2828 } ,
2929 } )
@@ -33,9 +33,9 @@ test.serial("should accept array of files", t => {
3333 return compareFixtures ( t , "custom-resolve-array" , {
3434 resolve : ( ) => {
3535 return [
36- path . resolve ( "fixtures/imports/custom-resolve-1.css" ) ,
37- path . resolve ( "fixtures/imports/custom-resolve-2.css" ) ,
38- path . resolve ( "fixtures/imports/custom-resolve-1.css" ) ,
36+ path . resolve ( "test/ fixtures/imports/custom-resolve-1.css" ) ,
37+ path . resolve ( "test/ fixtures/imports/custom-resolve-2.css" ) ,
38+ path . resolve ( "test/ fixtures/imports/custom-resolve-1.css" ) ,
3939 ]
4040 } ,
4141 } )
@@ -45,9 +45,9 @@ test.serial("should accept promised array of files", t => {
4545 return compareFixtures ( t , "custom-resolve-array" , {
4646 resolve : ( ) => {
4747 return Promise . resolve ( [
48- path . resolve ( "fixtures/imports/custom-resolve-1.css" ) ,
49- path . resolve ( "fixtures/imports/custom-resolve-2.css" ) ,
50- path . resolve ( "fixtures/imports/custom-resolve-1.css" ) ,
48+ path . resolve ( "test/ fixtures/imports/custom-resolve-1.css" ) ,
49+ path . resolve ( "test/ fixtures/imports/custom-resolve-2.css" ) ,
50+ path . resolve ( "test/ fixtures/imports/custom-resolve-1.css" ) ,
5151 ] )
5252 } ,
5353 } )
@@ -62,11 +62,11 @@ test(
6262 return path . replace ( "foo" , "imports/bar" )
6363 } ,
6464 load : p => {
65- t . is ( p , path . resolve ( "fixtures/imports" , "bar.css" ) )
65+ t . is ( p , path . resolve ( "test/ fixtures/imports" , "bar.css" ) )
6666 return "/* comment */"
6767 } ,
6868 } ) )
69- . process ( `@import "foo.css";` , { from : "fixtures/custom-resolve-file" } )
69+ . process ( `@import "foo.css";` , { from : "test/ fixtures/custom-resolve-file" } )
7070 . then ( result => {
7171 t . is ( result . css , "/* comment */" )
7272 } )
0 commit comments