Migrated most service tests to use new expectBadge (#3122)
This commit is contained in:
@@ -5,12 +5,12 @@ const t = (module.exports = require('../tester').createServiceTester())
|
||||
|
||||
t.create('start time')
|
||||
.get('/starttime.json')
|
||||
.expectJSONTypes({ name: 'start time', value: Joi.date().required() })
|
||||
.expectBadge({ label: 'start time', message: Joi.date().required() })
|
||||
|
||||
t.create('Flip: first request')
|
||||
.get('/flip.json')
|
||||
.expectJSON({ name: 'flip', value: 'on' })
|
||||
.expectBadge({ label: 'flip', message: 'on' })
|
||||
|
||||
t.create('Flip: second request')
|
||||
.get('/flip.json')
|
||||
.expectJSON({ name: 'flip', value: 'off' })
|
||||
.expectBadge({ label: 'flip', message: 'off' })
|
||||
|
||||
Reference in New Issue
Block a user