Migrated most service tests to use new expectBadge (#3122)

This commit is contained in:
Pierre-Yves B
2019-02-28 21:43:23 +00:00
committed by GitHub
parent 4e2d144f97
commit 1f29c22d3d
230 changed files with 3480 additions and 4439 deletions

View File

@@ -17,13 +17,11 @@ const bzBugStatus = Joi.equal(
t.create('Bugzilla valid bug status')
.get('/996038.json')
.expectJSONTypes(
Joi.object().keys({
name: 'bug 996038',
value: bzBugStatus,
})
)
.expectBadge({
label: 'bug 996038',
message: bzBugStatus,
})
t.create('Bugzilla invalid bug status')
.get('/83548978974387943879.json')
.expectJSON({ name: 'bugzilla', value: 'not found' })
.expectBadge({ label: 'bugzilla', message: 'not found' })