Unify and minimize tester boilerplate (#2472)
I started using this one-line boilerplate a while back and it seems to tidy things up a bit.
This commit is contained in:
@@ -15,8 +15,10 @@ const bzBugStatus = Joi.equal(
|
||||
'incomplete'
|
||||
)
|
||||
|
||||
const t = new ServiceTester({ id: 'bugzilla', title: 'Bugzilla' })
|
||||
module.exports = t
|
||||
const t = (module.exports = new ServiceTester({
|
||||
id: 'bugzilla',
|
||||
title: 'Bugzilla',
|
||||
}))
|
||||
|
||||
t.create('Bugzilla valid bug status')
|
||||
.get('/996038.json')
|
||||
|
||||
Reference in New Issue
Block a user