1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-07-30 02:21:17 +03:00

Make more code conform to strict null checks (#10219

* Make more code conform to strict null checks

* Fix types

* Fix tests

* Fix remaining test assertions

* Iterate PR
This commit is contained in:
Michael Telatynski
2023-02-24 15:28:40 +00:00
committed by GitHub
parent 4c79ecf141
commit 76b82b4b2b
130 changed files with 603 additions and 603 deletions

View File

@ -185,7 +185,6 @@ describe("RovingTabIndex", () => {
const ref4 = React.createRef<HTMLElement>();
let state: IState = {
activeRef: null,
refs: [ref1, ref2, ref3, ref4],
};
@ -196,7 +195,6 @@ describe("RovingTabIndex", () => {
},
});
expect(state).toStrictEqual({
activeRef: null,
refs: [ref1, ref3, ref4],
});
@ -207,7 +205,6 @@ describe("RovingTabIndex", () => {
},
});
expect(state).toStrictEqual({
activeRef: null,
refs: [ref1, ref4],
});
@ -218,7 +215,6 @@ describe("RovingTabIndex", () => {
},
});
expect(state).toStrictEqual({
activeRef: null,
refs: [ref1],
});
@ -229,7 +225,6 @@ describe("RovingTabIndex", () => {
},
});
expect(state).toStrictEqual({
activeRef: null,
refs: [],
});
});
@ -250,7 +245,6 @@ describe("RovingTabIndex", () => {
);
let state: IState = {
activeRef: null,
refs: [],
};