invalidPluginWithoutType.js 418 B

12345678910111213141516171819
  1. import Plugin from '../../src/plugins/Plugin.js'
  2. export default class InvalidPluginWithoutType extends Plugin {
  3. constructor (core, opts) {
  4. super(core, opts)
  5. this.id = 'InvalidPluginWithoutType'
  6. this.name = this.constructor.name
  7. }
  8. run (results) {
  9. this.core.log({
  10. class: this.constructor.name,
  11. method: 'run',
  12. results: results
  13. })
  14. return Promise.resolve('success')
  15. }
  16. }