Skip to content

Commit 7b8ae97

Browse files
committed
test: fix TypeScript error in apps/join test
Import HTTPError type and cast error to access body property, resolving TypeScript compilation error.
1 parent 523b529 commit 7b8ae97

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

test/unit/commands/apps/join.unit.test.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import {expectOutput, runCommand} from '@heroku-cli/test-utils'
2+
import {HTTPError} from '@heroku/http-call'
23
import {expect} from 'chai'
34
import nock from 'nock'
45

@@ -40,7 +41,7 @@ describe('heroku apps:join', function () {
4041
'myapp',
4142
])
4243
expect(error).to.exist
43-
expect(error!.body.error).to.eq('You do not have access to the team heroku-tools.')
44+
expect((error as HTTPError).body.error).to.eq('You do not have access to the team heroku-tools.')
4445
apiGetUserAccount.done()
4546
apiPostCollaborators.done()
4647
})

0 commit comments

Comments
 (0)