1
0
mirror of https://github.com/badges/shields.git synced 2025-07-10 05:20:59 +03:00

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:
Paul Melnikow
2018-12-08 13:15:24 -05:00
committed by GitHub
parent 3f9ef53899
commit 8a8311d931
103 changed files with 236 additions and 275 deletions

View File

@ -2,8 +2,8 @@
const Joi = require('joi')
const { isMetric } = require('../test-validators')
const t = require('../create-service-tester')()
module.exports = t
const t = (module.exports = require('../create-service-tester')())
t.create('Invalid parameters')
.get('/stackoverflow/r/invalidimage.json')