1
0
mirror of https://github.com/badges/shields.git synced 2025-07-27 19:01:52 +03:00

Remove dev dep imports in production code (#2937)

Fixes #2876 with @paulmelnikow's suggestion 

Moved imports of `ServiceTester` and `createServiceTester` to a separate file so that dev dependencies are not imported by service classes.
This commit is contained in:
Caleb Cartwright
2019-02-05 20:51:55 -06:00
committed by Paul Melnikow
parent cdeba2fdf9
commit 855c9cd261
220 changed files with 229 additions and 224 deletions

View File

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