Run prettier (#1866)
Merging this separately so the commit with the tooling change is readable. This is a follow-on to #1167 which turned prettier on.
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
'use strict';
|
||||
'use strict'
|
||||
|
||||
const Joi = require('joi');
|
||||
const ServiceTester = require('../service-tester');
|
||||
const Joi = require('joi')
|
||||
const ServiceTester = require('../service-tester')
|
||||
|
||||
const bzBugStatus = Joi.equal(
|
||||
'unconfirmed',
|
||||
@@ -9,27 +9,29 @@ const bzBugStatus = Joi.equal(
|
||||
'assigned',
|
||||
'fixed',
|
||||
'invalid',
|
||||
'won\'t fix',
|
||||
"won't fix",
|
||||
'duplicate',
|
||||
'works for me',
|
||||
'incomplete'
|
||||
);
|
||||
)
|
||||
|
||||
const t = new ServiceTester({ id: 'bugzilla', title: 'Bugzilla' });
|
||||
module.exports = t;
|
||||
const t = new ServiceTester({ id: 'bugzilla', title: 'Bugzilla' })
|
||||
module.exports = t
|
||||
|
||||
t.create('Bugzilla valid bug status')
|
||||
.get('/996038.json')
|
||||
.expectJSONTypes(Joi.object().keys({
|
||||
name: 'bug 996038',
|
||||
value: bzBugStatus
|
||||
}));
|
||||
.expectJSONTypes(
|
||||
Joi.object().keys({
|
||||
name: 'bug 996038',
|
||||
value: bzBugStatus,
|
||||
})
|
||||
)
|
||||
|
||||
t.create('Bugzilla invalid bug status')
|
||||
.get('/83548978974387943879.json')
|
||||
.expectJSON({ name: 'bug 83548978974387943879', value: 'not found' });
|
||||
.expectJSON({ name: 'bug 83548978974387943879', value: 'not found' })
|
||||
|
||||
t.create('Bugzilla failed request bug status')
|
||||
.get('/996038.json')
|
||||
.networkOff()
|
||||
.expectJSON({ name: 'bug 996038', value: 'inaccessible' });
|
||||
.expectJSON({ name: 'bug 996038', value: 'inaccessible' })
|
||||
|
||||
Reference in New Issue
Block a user