1
0
mirror of https://github.com/matrix-org/matrix-js-sdk.git synced 2025-12-04 05:02:41 +03:00

Stop client after backup tests

This commit is contained in:
David Baker
2018-10-25 19:11:43 +01:00
parent 243bab7036
commit b3bb99d76a

View File

@@ -441,6 +441,10 @@ describe("MegolmBackup", function() {
return client.initCrypto(); return client.initCrypto();
}); });
afterEach(function() {
client.stopClient();
});
it('can restore from backup', function() { it('can restore from backup', function() {
client._http.authedRequest = function() { client._http.authedRequest = function() {
return Promise.resolve(KEY_BACKUP_DATA); return Promise.resolve(KEY_BACKUP_DATA);