uppy/test/mocks/invalidPluginWithoutId.js
2018-03-19 10:48:36 +01:00

19 lines
405 B
JavaScript

const Plugin = require('../../src/core/Plugin')
module.exports = class InvalidPluginWithoutName extends Plugin {
constructor (uppy, opts) {
super(uppy, opts)
this.type = 'acquirer'
this.name = this.constructor.name
}
run (results) {
this.uppy.log({
class: this.constructor.name,
method: 'run',
results: results
})
return Promise.resolve('success')
}
}