Skip to content

Commit 8686c49

Browse files
committed
Merge pull request #50 from falsandtru/ie8
Unable to test on IE8
2 parents ac63055 + 4a8e2f7 commit 8686c49

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

test/tobe_instrumented/es6_test.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,7 @@
1616
body();
1717
expect().fail("AssertionError should be thrown");
1818
} catch (e) {
19-
expect(e.message.split('\n').slice(2, -1)).to.eql(expectedLines.map(function (line) {
20-
return line;
21-
}));
19+
expect(e.message.split('\n').slice(2, -1)).to.eql(expectedLines);
2220
}
2321
}
2422

test/tobe_instrumented/power_assert_test.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,7 @@ describe('power-assert message', function () {
2121
expect(e.actual).to.not.be.ok();
2222
expect(e.expected).to.be.ok();
2323
} else {
24-
expect(e.message.split('\n').slice(2, -1)).to.eql(expectedLines.map(function (line) {
25-
return line;
26-
}));
24+
expect(e.message.split('\n').slice(2, -1)).to.eql(expectedLines);
2725
}
2826
}
2927
};

0 commit comments

Comments
 (0)