1
0
mirror of https://github.com/matrix-org/matrix-js-sdk.git synced 2026-01-03 23:22:30 +03:00

Fix tests

This commit is contained in:
Travis Ralston
2019-07-03 16:50:24 -06:00
parent 3aa2bf8a76
commit ff9c84ff94

View File

@@ -308,7 +308,7 @@ describe("MatrixClient events", function() {
let sessionLoggedOutCount = 0;
client.on("Session.logged_out", function(errObj) {
sessionLoggedOutCount++;
expect(errObj).toMatchObject(error);
expect(errObj.data).toEqual(error);
});
client.startClient();
@@ -327,7 +327,7 @@ describe("MatrixClient events", function() {
let sessionLoggedOutCount = 0;
client.on("Session.logged_out", function(errObj) {
sessionLoggedOutCount++;
expect(errObj).toMatchObject(error);
expect(errObj.data).toEqual(error);
});
client.startClient();