From fa619c13bf113d0e1df986b6b836a208ba8753ba Mon Sep 17 00:00:00 2001 From: Joe Clark Date: Mon, 13 Nov 2023 10:05:46 +0000 Subject: [PATCH] worker: fix tests --- packages/ws-worker/test/integration.test.ts | 2 +- packages/ws-worker/test/mock/data.ts | 2 +- packages/ws-worker/test/util/convert-attempt.test.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/ws-worker/test/integration.test.ts b/packages/ws-worker/test/integration.test.ts index 61b87eabe..6072abb9a 100644 --- a/packages/ws-worker/test/integration.test.ts +++ b/packages/ws-worker/test/integration.test.ts @@ -171,7 +171,7 @@ test.serial( const attempt = getAttempt({}, [ { id: 'some-job', - credential: 'a', + credential_id: 'a', adaptor: '@openfn/language-common@1.0.0', body: JSON.stringify({ answer: 42 }), }, diff --git a/packages/ws-worker/test/mock/data.ts b/packages/ws-worker/test/mock/data.ts index e6e773be6..30907a1d1 100644 --- a/packages/ws-worker/test/mock/data.ts +++ b/packages/ws-worker/test/mock/data.ts @@ -25,7 +25,7 @@ export const attempts = { id: 'job-1', adaptor: '@openfn/language-common@1.0.0', body: 'fn(a => a)', - credential: 'a', + credential_id: 'a', }, ], }, diff --git a/packages/ws-worker/test/util/convert-attempt.test.ts b/packages/ws-worker/test/util/convert-attempt.test.ts index 27ca83c38..cee46a01f 100644 --- a/packages/ws-worker/test/util/convert-attempt.test.ts +++ b/packages/ws-worker/test/util/convert-attempt.test.ts @@ -8,7 +8,7 @@ const createNode = (props = {}) => id: 'a', body: 'x', adaptor: 'common', - credential: 'y', + credential_id: 'y', ...props, } as Node);