diff --git a/karma.conf.js b/karma.conf.js index 16a904917cd..44257ec7d93 100644 --- a/karma.conf.js +++ b/karma.conf.js @@ -34,6 +34,12 @@ module.exports = function (config) { browserName: 'firefox', version: 'dev' }, + sl_ie11: { + base: 'SauceLabs', + browserName: 'internet explorer', + platform: 'Windows 8.1', + version: '11' + }, sl_safari9: { base: 'SauceLabs', browserName: 'safari', diff --git a/spec/helpers/test-helper.js b/spec/helpers/test-helper.js index 97bf5e80d8c..dcd1d77deb5 100644 --- a/spec/helpers/test-helper.js +++ b/spec/helpers/test-helper.js @@ -135,6 +135,13 @@ afterEach(function () { }); global.__root__ = root; + + //setup promise polyfill for browsers does not supports it + if (!(root.Promise || root.Rx && root.Rx.config && root.Rx.config.Promise)) { + Rx.config = { + Promise: require('promise') + }; + } })(); global.lowerCaseO = function lowerCaseO() {