Skip to content

Commit

Permalink
fix batch-service tests
Browse files Browse the repository at this point in the history
  • Loading branch information
rossedfort committed Oct 10, 2023
1 parent e68306d commit bcc4190
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/lib/services/batch-service.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,6 @@ vi.mock('../utilities/request-from-api', () => ({
}),
}));

vi.mock('uuid', () => ({
v4: () => 'xxx',
}));

vi.mock('../stores/versions', () => {
return {
temporalVersion: writable(),
Expand All @@ -51,6 +47,7 @@ describe('Batch Service', () => {
namespace: 'default',
reason: 'test',
workflows: mockWorkflows,
jobId: 'xxx',
});

expect(requestFromAPI).toHaveBeenCalledTimes(2);
Expand All @@ -71,6 +68,7 @@ describe('Batch Service', () => {
namespace: 'default',
reason: 'test',
workflows: mockWorkflows,
jobId: 'xxx',
});

expect(requestFromAPI).toHaveBeenCalledTimes(2);
Expand Down Expand Up @@ -99,6 +97,7 @@ describe('Batch Service', () => {
namespace: 'default',
reason: 'test',
workflows: mockWorkflows,
jobId: 'xxx',
});

expect(requestFromAPI).toHaveBeenCalledTimes(2);
Expand All @@ -119,6 +118,7 @@ describe('Batch Service', () => {
namespace: 'default',
reason: 'test',
workflows: mockWorkflows,
jobId: 'xxx',
});

expect(requestFromAPI).toHaveBeenCalledTimes(2);
Expand Down

0 comments on commit bcc4190

Please sign in to comment.