Add some error messages for the developer when .service.js is malformed When loading `.service.js` files which don’t contain services, such as when the export is forgotten, print helpful error messages. This will only occur during development; the unit tests will catch these problems well before code reaches the server.
8 lines
147 B
JavaScript
8 lines
147 B
JavaScript
'use strict'
|
|
|
|
const BaseJsonService = require('../services/base-json')
|
|
|
|
class GoodService extends BaseJsonService {}
|
|
|
|
module.exports = GoodService
|