update [bitrise] URL (#1764)
This commit is contained in:
@@ -5621,7 +5621,7 @@ cache({
|
||||
const format = match[3];
|
||||
const token = data.token;
|
||||
const badgeData = getBadgeData('bitrise', data);
|
||||
let apiUrl = 'https://www.bitrise.io/app/' + appId + '/status.json?token=' + token;
|
||||
let apiUrl = 'https://app.bitrise.io/app/' + appId + '/status.json?token=' + token;
|
||||
if (typeof branch !== 'undefined') {
|
||||
apiUrl += '&branch=' + branch;
|
||||
}
|
||||
|
||||
@@ -42,7 +42,7 @@ t.create('invalid App ID')
|
||||
|
||||
t.create('server error')
|
||||
.get('/AppID/branch.json?token=token')
|
||||
.intercept(nock => nock('https://www.bitrise.io')
|
||||
.intercept(nock => nock('https://app.bitrise.io')
|
||||
.get('/app/AppID/status.json?token=token&branch=branch')
|
||||
.reply(500, 'Something went wrong'))
|
||||
.expectJSON({ name: 'bitrise', value: 'inaccessible' });
|
||||
|
||||
Reference in New Issue
Block a user