Merge pull request #377 from matrix-org/dbkr/use_logout_api

Call the logout API when we log out
This commit is contained in:
David Baker 2016-08-03 17:51:42 +01:00 committed by GitHub
commit cbfb0ad998
5 changed files with 226 additions and 78 deletions

View file

@ -51,7 +51,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',
'replaceUsingAccessToken'];
'replaceUsingCreds'];
for (var i = 0; i < methods.length; i++) {
sandbox.stub(peg, methods[i]);
}