Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Commit

Permalink
Fix code style
Browse files Browse the repository at this point in the history
  • Loading branch information
BillCarsonFr committed May 2, 2022
1 parent d61567b commit 958c01b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/DecryptionFailureTracker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export class DecryptionFailureTracker {
eventName: "Error",
domain: "E2EE",
name: errorCode,
context: `mxc_crypto_error_type_${rawError}`
context: `mxc_crypto_error_type_${rawError}`,
});
}
}, (errorCode) => {
Expand Down
6 changes: 3 additions & 3 deletions test/DecryptionFailureTracker-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@ describe('DecryptionFailureTracker', function() {
let count = 0;
let reportedRawCode = "";
const tracker = new DecryptionFailureTracker((total, errcode, rawCode) => {
count += total
reportedRawCode = rawCode
count += total;
reportedRawCode = rawCode;
}, () => "UnknownError");

tracker.addVisibleEvent(failedDecryptionEvent);
Expand All @@ -79,7 +79,7 @@ describe('DecryptionFailureTracker', function() {
tracker.trackFailures();

expect(count).not.toBe(0, 'should track a failure for an event that failed decryption');
expect(reportedRawCode).toBe('INBOUND_SESSION_MISMATCH_ROOM_ID', 'Should add the rawCode to the event context')
expect(reportedRawCode).toBe('INBOUND_SESSION_MISMATCH_ROOM_ID', 'Should add the rawCode to the event context');

done();
});
Expand Down

0 comments on commit 958c01b

Please sign in to comment.