Skip to content

Commit

Permalink
remove test for feature flag
Browse files Browse the repository at this point in the history
  • Loading branch information
jpople committed Jan 12, 2024
1 parent 290c4bc commit f675623
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions clients/admin-ui/src/home/tile-config.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,25 +95,5 @@ describe("configureTiles", () => {
});
expect(tiles.map((t) => t.name)).toEqual(["Review privacy requests"]);
});

it("can filter by feature flag", () => {
const tiles = configureTiles({
config: MODULE_CARD_ITEMS,
userScopes: [ScopeRegistryEnum.PRIVACY_NOTICE_READ],
flags: {},
hasPlus: true,
});
expect(tiles.length).toEqual(0);
});

it("can show based on feature flag", () => {
const tiles = configureTiles({
config: MODULE_CARD_ITEMS,
userScopes: [ScopeRegistryEnum.PRIVACY_NOTICE_READ],
flags: {},
hasPlus: true,
});
expect(tiles.map((t) => t.name)).toEqual(["Manage consent"]);
});
});
});

0 comments on commit f675623

Please sign in to comment.