Skip to content

Commit 4a121db

Browse files
committed
Support IE8 in Mocha tests
Replaced Date.now() with (new Date).getTime() because Date.now() is not supported until IE9.
1 parent 66ed8af commit 4a121db

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/_patch/mocha-plugin.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454

5555
runner.on('end', function() {
5656
results = {};
57-
results.runtime = Date.now() - start;
57+
results.runtime = (new Date).getTime() - start;
5858
results.total = passes + failures;
5959
results.passed = passes;
6060
results.failed = failures;

0 commit comments

Comments
 (0)