From 9df85198914853b4d5966842a3c254594b96a01e Mon Sep 17 00:00:00 2001 From: Ben White Date: Wed, 30 Oct 2024 11:41:46 +0100 Subject: [PATCH] Fixes --- plugin-server/tests/cdp/cdp-api.test.ts | 2 +- plugin-server/tests/cdp/hog-executor.test.ts | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/plugin-server/tests/cdp/cdp-api.test.ts b/plugin-server/tests/cdp/cdp-api.test.ts index 614f80bc2e6c4..25599334cbc0f 100644 --- a/plugin-server/tests/cdp/cdp-api.test.ts +++ b/plugin-server/tests/cdp/cdp-api.test.ts @@ -261,7 +261,7 @@ describe('CDP API', () => { expect(res.status).toEqual(200) expect(res.body).toMatchObject({ status: 'success', - error: 'undefined', + error: null, logs: [ { level: 'debug', diff --git a/plugin-server/tests/cdp/hog-executor.test.ts b/plugin-server/tests/cdp/hog-executor.test.ts index 94608b2f5bea1..9d1f5dea2bebf 100644 --- a/plugin-server/tests/cdp/hog-executor.test.ts +++ b/plugin-server/tests/cdp/hog-executor.test.ts @@ -31,8 +31,9 @@ const setupFetchResponse = (invocation: HogFunctionInvocation, options?: { statu ], response: { status: options?.status ?? 200, - body: options?.body ?? 'success', + headers: { 'Content-Type': 'application/json' }, }, + body: options?.body ?? 'success', } }