[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:
@@ -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: {
|
||||
|
||||
Reference in New Issue
Block a user