I am using simple mock (awesome work!) with mocha and karma. My tests run just fine with Chrome, Firefox and Safari. On IE11 instead I get this error: TypeError: Invalid calling object in three tests. Looking at the stack trace, two of them are caused by the following line:
simple.mock(PageHelper, 'getSymbol', function () { return SYMBOL; });
and the third one fails because of this line
simple.mock($.lh.$observer, 'trigger', function () {});
If you need any info about the versions, here from package.json:
I am using simple mock (awesome work!) with mocha and karma. My tests run just fine with Chrome, Firefox and Safari. On IE11 instead I get this error:
TypeError: Invalid calling object
in three tests. Looking at the stack trace, two of them are caused by the following line:and the third one fails because of this line
If you need any info about the versions, here from package.json:
and the stack trace
Edit: I think it could be related to this issue http://stackoverflow.com/questions/19321938/invalid-calling-object-error-in-ie