Skip to content

Commit 6a46be9

Browse files
committed
Improve test
1 parent 39e7f8a commit 6a46be9

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

library/sources/graphql/isGraphQLOverHTTP.test.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -124,11 +124,11 @@ t.test("GET request with versioned GraphQL endpoint", async (t) => {
124124
isGraphQLOverHTTP(
125125
createContext({
126126
method: "GET",
127-
path: "/graphql/v1",
127+
path: "/v1/graphql",
128128
query: { query: "{ field }" },
129129
})
130130
),
131-
false
131+
true
132132
);
133133
});
134134

@@ -137,12 +137,12 @@ t.test("POST request with versioned GraphQL endpoint", async (t) => {
137137
isGraphQLOverHTTP(
138138
createContext({
139139
method: "POST",
140-
path: "/graphql/v1",
140+
path: "/v1/graphql",
141141
headers: { "content-type": "application/json" },
142142
body: { query: "{ field }" },
143143
})
144144
),
145-
false
145+
true
146146
);
147147
});
148148

0 commit comments

Comments
 (0)