mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-08 20:42:43 +00:00
test(withings): drop emptyRequest arg from resume POST calls
POST handler signature was tightened from (request: NextRequest) to () after the simplifier-M4 reconcile dropped the unused param. The companion test file still called POST(emptyRequest() as never).
This commit is contained in:
1 parent
ab7c491716
commit
ad5a1586a1
1 file changed
+3
-3
@@ -66,7 +66,7 @@ describe("POST /api/integrations/withings/resume", () => {
|
||||
wasParked: true,
|
||||
});
|
||||
|
||||
const response = await POST(emptyRequest() as never);
|
||||
const response = await POST();
|
||||
expect(response.status).toBe(200);
|
||||
const body = (await response.json()) as ApiEnvelope<{
|
||||
resumed: boolean;
|
||||
@@ -81,7 +81,7 @@ describe("POST /api/integrations/withings/resume", () => {
|
||||
wasParked: false,
|
||||
});
|
||||
|
||||
const response = await POST(emptyRequest() as never);
|
||||
const response = await POST();
|
||||
expect(response.status).toBe(200);
|
||||
const body = (await response.json()) as ApiEnvelope<{
|
||||
resumed: boolean;
|
||||
@@ -97,7 +97,7 @@ describe("POST /api/integrations/withings/resume", () => {
|
||||
resetAt: Date.now() + 60_000,
|
||||
} as never);
|
||||
|
||||
const response = await POST(emptyRequest() as never);
|
||||
const response = await POST();
|
||||
expect(response.status).toBe(429);
|
||||
const body = (await response.json()) as ApiEnvelope<unknown> & {
|
||||
meta?: { errorCode?: string };
|
||||
|
||||
Reference in new issue
Block a user