Skip to content
This repository was archived by the owner on Jul 13, 2020. It is now read-only.

Commit 1730e5d

Browse files
committed
Merge pull request #290 from douglasduteil/test-fix-ie9-console-log-error
test: fix ie9 console.log error
2 parents 7604aa7 + a5937fb commit 1730e5d

File tree

3 files changed

+12
-2
lines changed

3 files changed

+12
-2
lines changed

karma.conf.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,13 @@ module.exports = function (config) {
5454
frameworks: ['mocha', 'expect'],
5555
files: flatten(files),
5656
reporters: ['mocha'],
57-
browsers: ['Chrome', 'Firefox']
57+
browsers: ['Chrome', 'Firefox'],
58+
client: {
59+
mocha: {
60+
reporter: 'html',
61+
timeout: 5000
62+
}
63+
}
5864
});
5965

6066
if (options.coverage) {

test/_helper.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@
33
(function (__global){
44
'use strict';
55

6+
if(!__global.console){
7+
__global.console = { log : __global.dump || function (){} };
8+
}
9+
10+
611
/**
712
* Describe a block if the bool is true.
813
* Will skip it otherwise.

test/mocha.opts

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)