Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Commit

Permalink
Fix other test
Browse files Browse the repository at this point in the history
  • Loading branch information
dbkr committed Jun 6, 2024
1 parent a40340f commit 7f08efd
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ import {
import { UIFeature } from "../../../../../../src/settings/UIFeature";
import { SettingLevel } from "../../../../../../src/settings/SettingLevel";
import { OidcClientStore } from "../../../../../../src/stores/oidc/OidcClientStore";
import MatrixClientContext from "../../../../../../src/contexts/MatrixClientContext";

describe("<GeneralUserSettingsTab />", () => {
const defaultProps = {
Expand All @@ -48,9 +49,11 @@ describe("<GeneralUserSettingsTab />", () => {
let stores: SdkContextClass;

const getComponent = () => (
<SDKContext.Provider value={stores}>
<GeneralUserSettingsTab {...defaultProps} />
</SDKContext.Provider>
<MatrixClientContext.Provider value={mockClient}>
<SDKContext.Provider value={stores}>
<GeneralUserSettingsTab {...defaultProps} />
</SDKContext.Provider>
</MatrixClientContext.Provider>
);

beforeEach(() => {
Expand Down

0 comments on commit 7f08efd

Please sign in to comment.