1
0
mirror of https://github.com/matrix-org/matrix-js-sdk.git synced 2025-07-30 04:23:07 +03:00

Misc lint

This commit is contained in:
Travis Ralston
2021-06-17 14:24:39 -06:00
parent 17402e8475
commit b15487ec03
3 changed files with 10 additions and 8 deletions

View File

@ -26,7 +26,7 @@ describe('MatrixEvent', () => {
},
});
const clone = a.getSnapshotCopy();
const clone = a.toSnapshot();
expect(clone).toBeDefined();
expect(clone).not.toBe(a);
expect(clone.event).not.toBe(a.event);
@ -54,7 +54,7 @@ describe('MatrixEvent', () => {
expect(a.isEquivalentTo(a)).toBe(true);
expect(b.isEquivalentTo(a)).toBe(false);
expect(b.isEquivalentTo(b)).toBe(true);
expect(a.getSnapshotCopy().isEquivalentTo(a)).toBe(true);
expect(a.getSnapshotCopy().isEquivalentTo(b)).toBe(false);
expect(a.toSnapshot().isEquivalentTo(a)).toBe(true);
expect(a.toSnapshot().isEquivalentTo(b)).toBe(false);
});
});