Fix tests

MatrixClientPeg no longer has a replaceUsingUrls method, so don't try to stub
it out.
This commit is contained in:
Richard van der Hoff 2016-08-12 07:27:53 +01:00
parent e32c325863
commit 5440fd7504

View file

@ -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() {
}, },
}; };
}; };