Skip to content

Commit

Permalink
test: Update Hasura tests
Browse files Browse the repository at this point in the history
  • Loading branch information
DafyddLlyr committed Jun 18, 2024
1 parent 0bdc1f8 commit 5941e4b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
6 changes: 3 additions & 3 deletions hasura.planx.uk/tests/portals.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ describe("portals", () => {
let res = await gqlAdmin(`
mutation {
insert_flows(objects: [
{slug: "TEST_root"},
{slug: "TEST_portal"},
{slug: "TEST_subportal"}
{slug: "TEST_root", name: "Test root"},
{slug: "TEST_portal", name: "Test portal"},
{slug: "TEST_subportal", name: "Test subportal"}
]) {
returning {
id
Expand Down
5 changes: 4 additions & 1 deletion hasura.planx.uk/tests/sessions.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,13 +80,15 @@ describe("sessions", () => {
`mutation InsertFlow(
$data: jsonb!,
$slug: String!,
$name: String!,
$teamId: Int!,
) {
insert_flows_one(
object: {
data: $data
slug: $slug
team_id: $teamId,
name: $name
team_id: $teamId
version: 1
}
) {
Expand All @@ -97,6 +99,7 @@ describe("sessions", () => {
data: { x: 1 },
slug: "flow1",
teamId: teamId,
name: "flow 1",
}
);
flowId = res2.data.insert_flows_one.id;
Expand Down

0 comments on commit 5941e4b

Please sign in to comment.