From 011154396ce3f86a96f7070d4190be1bf821a73b Mon Sep 17 00:00:00 2001 From: Luke Barnard Date: Fri, 15 Jun 2018 15:15:48 +0100 Subject: [PATCH] Add extra, useful expectation to test --- test/DecryptionFailureTracker-test.js | 1 + 1 file changed, 1 insertion(+) diff --git a/test/DecryptionFailureTracker-test.js b/test/DecryptionFailureTracker-test.js index 34e2df2b6e..66bc6daf4b 100644 --- a/test/DecryptionFailureTracker-test.js +++ b/test/DecryptionFailureTracker-test.js @@ -120,6 +120,7 @@ describe.only('DecryptionFailureTracker', function() { tracker.trackFailure(); tracker.trackFailure(); + expect(failures.length).toBe(2, 'expected 2 failures to be tracked, got ' + failures.length); expect(failures[0].failedEventId).toBe(decryptedEvent.getId(), 'the first failure should be tracked first'); expect(failures[1].failedEventId).toBe(decryptedEvent2.getId(), 'the second failure should be tracked second');