mirror of https://github.com/vector-im/riot-web
Fix tests
parent
d9a7d50a03
commit
da03af6c1c
|
@ -51,7 +51,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', 'replaceUsingUrls',
|
||||||
'replaceUsingAccessToken'];
|
'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]);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue