Skip to content

Commit b0ea586

Browse files
committed
Fix tests for older node
1 parent 7788908 commit b0ea586

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

test/rtlTest.js

+9-9
Original file line numberDiff line numberDiff line change
@@ -4,23 +4,23 @@ var test = require("./helpers").test;
44
var testMinimize = require("./helpers").testMinimize;
55

66
describe("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
});

0 commit comments

Comments
 (0)