@@ -5,7 +5,7 @@ function run(input, opts = {}) {
55 return postcss ( [ plugin ( ( ) => opts ) ] ) . process ( input )
66}
77
8- test ( " it looks up values in the config using dot notation" , ( ) => {
8+ test ( ' it looks up values in the config using dot notation' , ( ) => {
99 const input = `
1010 .banana { color: config('colors.yellow'); }
1111 `
@@ -17,14 +17,14 @@ test("it looks up values in the config using dot notation", () => {
1717 return run ( input , {
1818 colors : {
1919 yellow : '#f7cc50' ,
20- }
20+ } ,
2121 } ) . then ( result => {
2222 expect ( result . css ) . toEqual ( output )
2323 expect ( result . warnings ( ) . length ) . toBe ( 0 )
2424 } )
2525} )
2626
27- test ( " quotes are optional around the lookup path" , ( ) => {
27+ test ( ' quotes are optional around the lookup path' , ( ) => {
2828 const input = `
2929 .banana { color: config(colors.yellow); }
3030 `
@@ -36,14 +36,14 @@ test("quotes are optional around the lookup path", () => {
3636 return run ( input , {
3737 colors : {
3838 yellow : '#f7cc50' ,
39- }
39+ } ,
4040 } ) . then ( result => {
4141 expect ( result . css ) . toEqual ( output )
4242 expect ( result . warnings ( ) . length ) . toBe ( 0 )
4343 } )
4444} )
4545
46- test ( " a default value can be provided" , ( ) => {
46+ test ( ' a default value can be provided' , ( ) => {
4747 const input = `
4848 .cookieMonster { color: config('colors.blue', #0000ff); }
4949 `
@@ -55,14 +55,14 @@ test("a default value can be provided", () => {
5555 return run ( input , {
5656 colors : {
5757 yellow : '#f7cc50' ,
58- }
58+ } ,
5959 } ) . then ( result => {
6060 expect ( result . css ) . toEqual ( output )
6161 expect ( result . warnings ( ) . length ) . toBe ( 0 )
6262 } )
6363} )
6464
65- test ( " quotes are preserved around default values" , ( ) => {
65+ test ( ' quotes are preserved around default values' , ( ) => {
6666 const input = `
6767 .heading { font-family: config('fonts.sans', "Helvetica Neue"); }
6868 `
@@ -73,8 +73,8 @@ test("quotes are preserved around default values", () => {
7373
7474 return run ( input , {
7575 fonts : {
76- serif : " Constantia" ,
77- }
76+ serif : ' Constantia' ,
77+ } ,
7878 } ) . then ( result => {
7979 expect ( result . css ) . toEqual ( output )
8080 expect ( result . warnings ( ) . length ) . toBe ( 0 )
0 commit comments