Skip to content

Commit

Permalink
MAT-7475: remove unneeded feature flags
Browse files Browse the repository at this point in the history
  • Loading branch information
ethankaplan committed Jul 30, 2024
1 parent 73def11 commit 5fbe45a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
5 changes: 0 additions & 5 deletions src/components/common/CreateNewLibraryDialog.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,6 @@ jest.mock("@madie/madie-util", () => ({
useOrganizationApi: jest.fn(() => ({
getAllOrganizations: jest.fn().mockResolvedValue(organizations),
})),
useFeatureFlags: jest.fn().mockReturnValue({
qdmExport: true,
}),
}));
const organizations = [
{
Expand Down Expand Up @@ -157,7 +154,6 @@ describe("Library Dialog", () => {
});

test("Allows creation of a QDM library", async () => {
(useFeatureFlags as jest.Mock).mockReturnValue({ qdm: true });
const onFormSubmit = jest.fn();
const onFormCancel = jest.fn();
render(
Expand Down Expand Up @@ -236,7 +232,6 @@ describe("Library Dialog", () => {
}, 20000);

test("Does not allow creation of a QI-Core library with special charater", async () => {
(useFeatureFlags as jest.Mock).mockReturnValue({ qdm: true });
const onFormSubmit = jest.fn();
const onFormCancel = jest.fn();
render(
Expand Down
4 changes: 1 addition & 3 deletions src/types/madie-madie-util.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,7 @@ declare module "@madie/madie-util" {
state: CqlLibrary;
};

interface FeatureFlags {
qdmExport: boolean;
}
interface FeatureFlags {}

export function useFeatureFlags(): FeatureFlags;

Expand Down

0 comments on commit 5fbe45a

Please sign in to comment.