Skip to content

Commit

Permalink
feat: [#38] Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
yeraydavidrodriguez committed May 13, 2022
1 parent 473a9ea commit d03f1fc
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions __tests__/unit/job.test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import {CommitHash} from '../../src/commit-hash'
import {CommitInfo} from '../../src/commit-info'
import {Job} from '../../src/job'
import {Job, nullJob} from '../../src/job'
import {NewJobCommittedMessage} from '../../src/committed-message'
import {dummyCommitBodyText} from '../../src/__tests__/helpers'

Expand Down Expand Up @@ -35,13 +35,9 @@ describe('Job', () => {
})

it('should be nullable', () => {
const job = new Job(
'payload',
new CommitHash('a362802b98c78df052a78796a1a7cde60a5c1faf'),
0
)
const job = nullJob()

expect(job.getPayload()).toBe('payload')
expect(job.isNull()).toBe(true)
})

it('should compare two jobs', () => {
Expand Down

0 comments on commit d03f1fc

Please sign in to comment.