Skip to content

Commit

Permalink
test: fix broken test
Browse files Browse the repository at this point in the history
  • Loading branch information
manast committed Dec 12, 2019
1 parent e73355a commit 5a4acd7
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/test/test_job.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,11 @@ describe('Job', function() {

describe('.update', function() {
it('should allow updating job data', async function() {
const job = await Job.create(queue, 'test', { foo: 'bar' });
const job = await Job.create<{ foo?: string; baz?: string }>(
queue,
'test',
{ foo: 'bar' },
);
await job.update({ baz: 'qux' });

const updatedJob = await Job.fromId(queue, job.id);
Expand Down

0 comments on commit 5a4acd7

Please sign in to comment.