Conform more of the codebase to strict types (#11191)

This commit is contained in:
Michael Telatynski
2023-07-05 11:53:22 +01:00
committed by GitHub
parent 4044c2aa66
commit 8107f1d271
25 changed files with 88 additions and 57 deletions
@@ -31,6 +31,7 @@ import {
UNSTABLE_MSC3882_CAPABILITY,
CryptoApi,
DeviceVerificationStatus,
MatrixError,
} from "matrix-js-sdk/src/matrix";
import { mocked } from "jest-mock";
@@ -722,10 +723,12 @@ describe("<SessionManagerTab />", () => {
});
describe("other devices", () => {
const interactiveAuthError = {
httpStatus: 401,
data: { flows: [{ stages: ["m.login.password"] }] },
};
const interactiveAuthError = new MatrixError(
{
flows: [{ stages: ["m.login.password"] }],
},
401,
);
beforeEach(() => {
mockClient.deleteMultipleDevices.mockReset();