Skip to content

Commit 50e2dda

Browse files
committed
fix membership live tests
1 parent f2e3cf2 commit 50e2dda

File tree

1 file changed

+5
-10
lines changed

1 file changed

+5
-10
lines changed

tests/live/membership.test.ts

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,7 @@ describe("Membership API basic checks", async () => {
159159
method: "PATCH",
160160
headers: {
161161
authorization: `Bearer ${token}`,
162+
"content-type": "application/json",
162163
},
163164
body: JSON.stringify({
164165
add: ["acmtest3"],
@@ -173,6 +174,7 @@ describe("Membership API basic checks", async () => {
173174
method: "PATCH",
174175
headers: {
175176
authorization: `Bearer ${token}`,
177+
"content-type": "application/json",
176178
},
177179
body: JSON.stringify({
178180
add: ["acmtest2"],
@@ -182,14 +184,7 @@ describe("Membership API basic checks", async () => {
182184
);
183185

184186
expect(response.status).toBe(201);
185-
},
186-
);
187-
test(
188-
"Test that getting external list members succeeds",
189-
{ timeout: 10000 },
190-
async () => {
191-
const token = await createJwt();
192-
const response = await fetch(
187+
const response2 = await fetch(
193188
`${baseEndpoint}/api/v1/membership/externalList/acmLiveTesting`,
194189
{
195190
method: "GET",
@@ -199,9 +194,9 @@ describe("Membership API basic checks", async () => {
199194
},
200195
);
201196

202-
expect(response.status).toBe(200);
197+
expect(response2.status).toBe(200);
203198

204-
const responseBody = await response.json();
199+
const responseBody = await response2.json();
205200
expect(responseBody.length).toBeGreaterThan(0);
206201
expect(responseBody).toContain("acmtest2");
207202
expect(responseBody).not.toContain("acmtest3");

0 commit comments

Comments
 (0)