uppy/test/mocks/invalidPluginWithoutId.js
2018-06-28 12:20:21 +02:00

19 lines
413 B
JavaScript

const { Plugin } = require('../../packages/@uppy/core')
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')
}
}