uppy/test/mocks/invalidPluginWithoutId.js

19 lines
409 B
JavaScript

const { UIPlugin } = require('../../packages/@uppy/core')
module.exports = class InvalidPluginWithoutName extends UIPlugin {
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,
})
return Promise.resolve('success')
}
}