[Github] Handle the case when the Github deployment status returns null (#5704)

* Handle the case when the Github deployment status returns null

* Integration test null latestStatus response from Github Deployments

Co-authored-by: repo-ranger[bot] <39074581+repo-ranger[bot]@users.noreply.github.com>
This commit is contained in:
Dominik Grzelak
2020-10-16 01:51:31 +02:00
committed by GitHub
parent cd70bf5246
commit d1ec834cb5
3 changed files with 35 additions and 7 deletions

View File

@@ -23,6 +23,12 @@ describe('GithubDeployments', function () {
message: 'in progress',
color: undefined,
})
given({
state: 'NO_STATUS',
}).expect({
message: 'no status yet',
color: undefined,
})
})
test(GithubDeployments.prototype.transform, () => {
@@ -47,7 +53,9 @@ describe('GithubDeployments', function () {
},
},
},
}).expectError('Not Found: deployment has no status (yet)')
}).expect({
state: 'NO_STATUS',
})
given({
data: {
repository: {