@@ -3,31 +3,31 @@ import test from 'ava'
33
44import plugin from './'
55
6- function run ( t , input , output , opts = { } ) { //eslint-disable-line
7- return postcss ( [ plugin ( opts ) ] ) . process ( input )
8- . then ( function ( result ) {
9- t . deepEqual ( result . css , output )
10- t . deepEqual ( result . warnings ( ) . length , 0 )
11- } )
6+ function run ( t , input , output , opts = { } ) { //eslint-disable-line
7+ return postcss ( [ plugin ( opts ) ] ) . process ( input )
8+ . then ( function ( result ) {
9+ t . deepEqual ( result . css , output )
10+ t . deepEqual ( result . warnings ( ) . length , 0 )
11+ } )
1212}
1313
1414test ( 'replace overflow-wrap with word-wrap, no options' , function ( t ) {
15- return run ( t ,
16- '.someClass{ overflow-wrap: break-word; }' ,
17- '.someClass{ word-wrap: break-word; }'
18- , { } )
15+ return run ( t ,
16+ '.someClass{ overflow-wrap: break-word; }' ,
17+ '.someClass{ word-wrap: break-word; }'
18+ , { } )
1919} )
2020
2121test ( 'add word-wrap right before overflow-wrap due to passed arg' , function ( t ) {
22- return run ( t ,
23- '.anotherClass{font-size:1rem;overflow-wrap:break-word;}' ,
24- '.anotherClass{font-size:1rem;word-wrap:break-word;overflow-wrap:break-word;}'
25- , { method : 'copy' } )
22+ return run ( t ,
23+ '.anotherClass{font-size:1rem;overflow-wrap:break-word;}' ,
24+ '.anotherClass{font-size:1rem;word-wrap:break-word;overflow-wrap:break-word;}'
25+ , { method : 'copy' } )
2626} )
2727
2828test ( 'replace overflow-wrap with word-wrap, replace method' , function ( t ) {
29- return run ( t ,
30- 'main { overflow-wrap: normal; }' ,
31- 'main { word-wrap: normal; }'
32- , { method : 'replace' } )
29+ return run ( t ,
30+ 'main { overflow-wrap: normal; }' ,
31+ 'main { word-wrap: normal; }'
32+ , { method : 'replace' } )
3333} )
0 commit comments