Skip to content

Commit

Permalink
alter hasura testing in line with permissions changes
Browse files Browse the repository at this point in the history
  • Loading branch information
RODO94 committed Jul 19, 2024
1 parent a4b2325 commit ded5dd5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
6 changes: 4 additions & 2 deletions hasura.planx.uk/tests/team_integrations.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,10 @@ describe("team_integrations", () => {
expect(i.queries).not.toContain("team_integrations");
});

test("cannot create, update, or delete team_integrations", () => {
expect(i).toHaveNoMutationsFor("team_integrations");
test("can create but, cannot update, or delete team_integrations", () => {
expect(i.mutations).toContain("insert_team_integrations");
expect(i.mutations).not.toContain("update_team_integrations_by_pk");
expect(i.mutations).not.toContain("delete_team_integrations");
});
});

Expand Down
4 changes: 2 additions & 2 deletions hasura.planx.uk/tests/team_themes.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ describe("team_themes", () => {
expect(i.queries).toContain("team_themes");
});

test("cannot insert team_themes", () => {
expect(i.queries).not.toContain("insert_team_themes");
test("can insert team_themes", () => {
expect(i.queries).toContain("insert_team_themes");
});

test("can query team_themes", async () => {
Expand Down

0 comments on commit ded5dd5

Please sign in to comment.