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.
7 lines
110 B
JavaScript
7 lines
110 B
JavaScript
'use strict'
|
|
|
|
class BadBaseService {}
|
|
class BadService extends BadBaseService {}
|
|
|
|
module.exports = BadService
|