uppy/test/mocks/invalidPluginWithoutId.js
2017-12-09 13:21:20 -05:00

19 lines
398 B
JavaScript

import Plugin from '../../src/core/Plugin'
export default 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')
}
}