mirror of
https://github.com/vector-im/element-web.git
synced 2024-11-15 20:54:59 +08:00
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
@ -50,8 +50,7 @@ module.exports.stubClient = function() {
|
||||
//
|
||||
// 'sandbox.restore()' doesn't work correctly on inherited methods,
|
||||
// so we do this for each method
|
||||
var methods = ['get', 'unset', 'replaceUsingUrls',
|
||||
'replaceUsingCreds'];
|
||||
var methods = ['get', 'unset', 'replaceUsingCreds'];
|
||||
for (var i = 0; i < methods.length; i++) {
|
||||
sandbox.stub(peg, methods[i]);
|
||||
}
|
||||
@ -184,4 +183,3 @@ module.exports.mkStubRoom = function() {
|
||||
},
|
||||
};
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user