File tree Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -4,23 +4,23 @@ var test = require("./helpers").test;
44var testMinimize = require ( "./helpers" ) . testMinimize ;
55
66describe ( "rtlcss" , function ( ) {
7- var _document
8- before ( ( ) => {
9- _document = global . document
7+ var _document ;
8+ before ( function ( ) {
9+ _document = global . document ;
1010 global . document = {
1111 getElementsByTagName : function ( ) {
1212 return [ {
1313 getAttribute : function ( ) {
14- return 'rtl'
14+ return 'rtl' ;
1515 }
1616 } ] ;
1717 }
1818 } ;
19- } )
19+ } ) ;
2020
21- after ( ( ) => {
22- global . document = _document
23- } )
21+ after ( function ( ) {
22+ global . document = _document ;
23+ } ) ;
2424
2525 test ( "basic property" , ".class { right: 10px; }" , [
2626 [ 1 , ".class { left: 10px; }" , "" ]
@@ -30,5 +30,5 @@ describe("rtlcss", function() {
3030 ] ) ;
3131 test ( "ignore" , ".class { /*rtl:begin:ignore*/border-right: 10px;/*rtl:end:ignore*/ left: 10px; }" , [
3232 [ 1 , ".class {border-right: 10px; right: 10px; }" , "" ]
33- ] )
33+ ] ) ;
3434} ) ;
You can’t perform that action at this time.
0 commit comments