We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dc2f95d commit a8e9756Copy full SHA for a8e9756
index.js
@@ -46,7 +46,13 @@ function stubService(service) {
46
var client = new Original();
47
48
function FakeService(config) { Object.assign(this, new Original(config)); }
49
- FakeService.prototype = Object.assign({}, client.__proto__);
+ FakeService.prototype = Object.assign(
50
+ {},
51
+ client.__proto__.__proto__.__proto__,
52
+ client.__proto__.__proto__,
53
+ client.__proto__
54
+ );
55
+
56
57
var spy = sinon.spy(FakeService);
58
spy.restore = function() { setService(service, Original); };
0 commit comments