For now, shelve persistance across sessions
This commit is contained in:
parent
edfc9a0841
commit
488cc416cf
3 changed files with 17 additions and 10 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue