File tree 1 file changed +9
-9
lines changed
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;
4
4
var testMinimize = require ( "./helpers" ) . testMinimize ;
5
5
6
6
describe ( "rtlcss" , function ( ) {
7
- var _document
8
- before ( ( ) => {
9
- _document = global . document
7
+ var _document ;
8
+ before ( function ( ) {
9
+ _document = global . document ;
10
10
global . document = {
11
11
getElementsByTagName : function ( ) {
12
12
return [ {
13
13
getAttribute : function ( ) {
14
- return 'rtl'
14
+ return 'rtl' ;
15
15
}
16
16
} ] ;
17
17
}
18
18
} ;
19
- } )
19
+ } ) ;
20
20
21
- after ( ( ) => {
22
- global . document = _document
23
- } )
21
+ after ( function ( ) {
22
+ global . document = _document ;
23
+ } ) ;
24
24
25
25
test ( "basic property" , ".class { right: 10px; }" , [
26
26
[ 1 , ".class { left: 10px; }" , "" ]
@@ -30,5 +30,5 @@ describe("rtlcss", function() {
30
30
] ) ;
31
31
test ( "ignore" , ".class { /*rtl:begin:ignore*/border-right: 10px;/*rtl:end:ignore*/ left: 10px; }" , [
32
32
[ 1 , ".class {border-right: 10px; right: 10px; }" , "" ]
33
- ] )
33
+ ] ) ;
34
34
} ) ;
You can’t perform that action at this time.
0 commit comments