You've already forked element-web
mirror of
https://github.com/element-hq/element-web.git
synced 2025-11-29 21:23:11 +03:00
For now, shelve persistance across sessions
This commit is contained in:
@@ -151,7 +151,7 @@ describe('DecryptionFailureTracker', function() {
|
||||
done();
|
||||
});
|
||||
|
||||
it('should not track a failure for an event that was tracked in a previous session', (done) => {
|
||||
xit('should not track a failure for an event that was tracked in a previous session', (done) => {
|
||||
// This test uses localStorage, clear it beforehand
|
||||
localStorage.clear();
|
||||
|
||||
@@ -171,7 +171,9 @@ describe('DecryptionFailureTracker', function() {
|
||||
|
||||
// Simulate the browser refreshing by destroying tracker and creating a new tracker
|
||||
const secondTracker = new DecryptionFailureTracker((failure) => failures.push(failure));
|
||||
secondTracker.loadTrackedEventHashMap();
|
||||
|
||||
//secondTracker.loadTrackedEventHashMap();
|
||||
|
||||
secondTracker.eventDecrypted(decryptedEvent);
|
||||
secondTracker.checkFailures(Infinity);
|
||||
secondTracker.trackFailure();
|
||||
|
||||
Reference in New Issue
Block a user