Search code examples
gruntjskarma-runnertravis-cisinonsaucelabs

Sinon TypeError: '[object ProgressEventConstructor]' in Karma/SauceLabs testing


I'm migrating a framework Specs to run with Karma/Jasmin/Grunt and Travis/SauceLabs

While running the specs I get errors in all Ajax specs for some browsers.

PhantomJS/Opera/Chrome && FF are all green. No errors.

Safari give this same error in all those 13 Specs in Sinon.js:

TypeError: '[object ProgressEventConstructor]' is not a constructor 
    (evaluating 'new ProgressEvent("progress", {loaded: 100, total: 100})')

In IE I get another text for the same error:

TypeError: Object doesn't support this action

Any idea what I might be missing?


Solution

  • Fixed with updating the version of Sinon.js

    Att the moment the new version was not released yet, plus that I concated sinon-IE into it. So if anyone needs its here.