You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This problem is similar to #28. ts-mockito tries to mock hasOwnProperty and fails with this stack trace:
TypeError: methodStub.hasMatchingInAnyGroup is not a function
at Mocker.getMethodStub (node_modules/ts-mockito/lib/Mock.js:186:38)
at Object.hasOwnProperty (node_modules/ts-mockito/lib/Mock.js:118:36)
at Mocker.createInstanceActionListener (node_modules/ts-mockito/lib/Mock.js:104:27)
at node_modules/ts-mockito/lib/Mock.js:88:27
at Array.forEach (<anonymous>)
at node_modules/ts-mockito/lib/Mock.js:79:66
at Array.forEach (<anonymous>)
at Mocker.processProperties (node_modules/ts-mockito/lib/Mock.js:78:58)
at new Mocker (node_modules/ts-mockito/lib/Mock.js:27:18)
at Object.mock (node_modules/ts-mockito/lib/ts-mockito.js:25:12)
I encountered this while trying to mock some built-in objects in NW.js. One way to reproduce it in that environment is to:
create a blank NW.js app (an empty HTML page is fine)
use npm to install ts-mockito
start the NW.js app using the SDK/development version of NW.js
right-click the page and choose Inspect which will open the Chromium Devtools
This problem is similar to #28.
ts-mockito
tries to mockhasOwnProperty
and fails with this stack trace:I encountered this while trying to mock some built-in objects in NW.js. One way to reproduce it in that environment is to:
npm
to installts-mockito
Inspect
which will open the Chromium DevtoolsThe text was updated successfully, but these errors were encountered: