You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-07-30 02:21:17 +03:00
Fix jest/no-conditional-expect lint and enable it (#10307)
This commit is contained in:
committed by
GitHub
parent
2c97cb4054
commit
af1ec76149
@ -56,8 +56,10 @@ describe("FixedRollingArray", () => {
|
||||
expect(previous - current).toBe(1);
|
||||
|
||||
if (i === 1) {
|
||||
// eslint-disable-next-line jest/no-conditional-expect
|
||||
expect(previous).toBe(maxValue);
|
||||
} else if (i === width) {
|
||||
// eslint-disable-next-line jest/no-conditional-expect
|
||||
expect(current).toBe(minValue);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user