Skip to content

Commit

Permalink
worker: fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
josephjclark committed Nov 15, 2023
1 parent 2f930c0 commit c171716
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions packages/ws-worker/test/api/execute.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ test('send event should throw if the event errors', async (t) => {
});

test('jobStart should set a run id and active job on state', async (t) => {
const plan = { id: 'attempt-1' };
const plan = { id: 'attempt-1', jobs: [{ id: 'job-1' }] };
const jobId = 'job-1';

const state = createAttemptState(plan);
Expand All @@ -85,7 +85,10 @@ test('jobStart should send a run:start event', async (t) => {
const plan = {
id: 'attempt-1',
initialState: 'abc',
jobs: [{ id: 'job-1' }, { id: 'job-2' }],
jobs: [
{ id: 'job-1', expression: '.' },
{ id: 'job-2', expression: '.' },
],
};
const jobId = 'job-1';

Expand Down

0 comments on commit c171716

Please sign in to comment.