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

Fix jest/no-conditional-expect lint and enable it (#3194)

This commit is contained in:
Michael Telatynski
2023-03-07 12:44:03 +00:00
committed by GitHub
parent b4cdc5a923
commit 4424438658
12 changed files with 65 additions and 81 deletions

View File

@@ -572,11 +572,7 @@ describe("NotificationService", function () {
});
const actions = pushProcessor.actionsForEvent(testEvent);
if (expected) {
expect(actions?.notify).toBeTruthy();
} else {
expect(actions?.notify).toBeFalsy();
}
expect(!!actions?.notify).toBe(expected);
});
});