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

Commit a5937fb

Browse files
committed
test: fix ie9 console.log error
On SauceLabs the instantiated IE browser can be available without developer tools opened. And for IE 8-9 it means no "console" object defined on window...
1 parent 301ceb7 commit a5937fb

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
@@ -53,7 +53,13 @@ module.exports = function (config) {
5353
frameworks: ['mocha', 'expect'],
5454
files: flatten(files),
5555
reporters: ['mocha'],
56-
browsers: ['Chrome', 'Firefox']
56+
browsers: ['Chrome', 'Firefox'],
57+
client: {
58+
mocha: {
59+
reporter: 'html',
60+
timeout: 5000
61+
}
62+
}
5763
});
5864

5965
if (options.travis) {

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)