You've already forked matrix-js-sdk
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:
committed by
GitHub
parent
b4cdc5a923
commit
4424438658
@@ -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);
|
||||
});
|
||||
});
|
||||
|
||||
|
Reference in New Issue
Block a user