Skip to content

Commit

Permalink
fix: lint nags
Browse files Browse the repository at this point in the history
  • Loading branch information
shalvah committed Jul 28, 2022
1 parent 7ea04a5 commit 1d92728
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/unit/core/client.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -931,6 +931,7 @@ describe('client', function () {
expect(payload.error.class).toEqual(outerError.name)
expect(payload.error.message).toEqual(outerError.message)

/* eslint-disable jest/no-conditional-expect */
if (outerError.cause) { // `.cause` in constructor is only supported on certain platforms/Node versions
expect(payload.error.causes).toHaveLength(1)
expect(payload.error.causes[0].class).toEqual(innerError.name)
Expand All @@ -939,5 +940,6 @@ describe('client', function () {
} else {
expect(payload.error.causes).toHaveLength(0)
}
/* eslint-enable jest/no-conditional-expect */
})
})

0 comments on commit 1d92728

Please sign in to comment.