From bcc41909a88343545b57255e0af32e84bab734da Mon Sep 17 00:00:00 2001 From: Ross Edfort Date: Tue, 10 Oct 2023 09:17:03 -0600 Subject: [PATCH] fix batch-service tests --- src/lib/services/batch-service.test.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/lib/services/batch-service.test.ts b/src/lib/services/batch-service.test.ts index aecb1fb28..aa4f600db 100644 --- a/src/lib/services/batch-service.test.ts +++ b/src/lib/services/batch-service.test.ts @@ -24,10 +24,6 @@ vi.mock('../utilities/request-from-api', () => ({ }), })); -vi.mock('uuid', () => ({ - v4: () => 'xxx', -})); - vi.mock('../stores/versions', () => { return { temporalVersion: writable(), @@ -51,6 +47,7 @@ describe('Batch Service', () => { namespace: 'default', reason: 'test', workflows: mockWorkflows, + jobId: 'xxx', }); expect(requestFromAPI).toHaveBeenCalledTimes(2); @@ -71,6 +68,7 @@ describe('Batch Service', () => { namespace: 'default', reason: 'test', workflows: mockWorkflows, + jobId: 'xxx', }); expect(requestFromAPI).toHaveBeenCalledTimes(2); @@ -99,6 +97,7 @@ describe('Batch Service', () => { namespace: 'default', reason: 'test', workflows: mockWorkflows, + jobId: 'xxx', }); expect(requestFromAPI).toHaveBeenCalledTimes(2); @@ -119,6 +118,7 @@ describe('Batch Service', () => { namespace: 'default', reason: 'test', workflows: mockWorkflows, + jobId: 'xxx', }); expect(requestFromAPI).toHaveBeenCalledTimes(2);