Fix tests
MatrixClientPeg no longer has a replaceUsingUrls method, so don't try to stub it out.
This commit is contained in:
parent
e32c325863
commit
5440fd7504
1 changed files with 1 additions and 3 deletions
|
@ -50,8 +50,7 @@ module.exports.stubClient = function() {
|
||||||
//
|
//
|
||||||
// 'sandbox.restore()' doesn't work correctly on inherited methods,
|
// 'sandbox.restore()' doesn't work correctly on inherited methods,
|
||||||
// so we do this for each method
|
// so we do this for each method
|
||||||
var methods = ['get', 'unset', 'replaceUsingUrls',
|
var methods = ['get', 'unset', 'replaceUsingCreds'];
|
||||||
'replaceUsingCreds'];
|
|
||||||
for (var i = 0; i < methods.length; i++) {
|
for (var i = 0; i < methods.length; i++) {
|
||||||
sandbox.stub(peg, methods[i]);
|
sandbox.stub(peg, methods[i]);
|
||||||
}
|
}
|
||||||
|
@ -184,4 +183,3 @@ module.exports.mkStubRoom = function() {
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue