mirror of
https://github.com/transloadit/uppy.git
synced 2026-07-25 03:08:34 +00:00
remove one more core:
This commit is contained in:
parent
6f510f4679
commit
fe8e1cf34c
2 changed files with 3 additions and 3 deletions
|
|
@ -115,7 +115,7 @@ class Uppy {
|
|||
})
|
||||
|
||||
this._storeUnsubscribe = this.store.subscribe((prevState, nextState, patch) => {
|
||||
this.emit('core:state-update', prevState, nextState, patch)
|
||||
this.emit('state-update', prevState, nextState, patch)
|
||||
this.updateAll(nextState)
|
||||
})
|
||||
|
||||
|
|
|
|||
|
|
@ -605,7 +605,7 @@ describe('src/Core', () => {
|
|||
type: 'image/jpeg',
|
||||
isRemote: false
|
||||
}
|
||||
core.emit('core:file-added', file)
|
||||
core.emit('file-added', file)
|
||||
expect(utils.createThumbnail).toHaveBeenCalledTimes(1)
|
||||
expect(utils.createThumbnail.mock.calls[0][1]).toEqual(200)
|
||||
})
|
||||
|
|
@ -619,7 +619,7 @@ describe('src/Core', () => {
|
|||
isRemote: false,
|
||||
data: 'foo'
|
||||
}
|
||||
core.emit('core:file-added', file)
|
||||
core.emit('file-added', file)
|
||||
expect(URL.createObjectURL).toHaveBeenCalledTimes(1)
|
||||
expect(URL.createObjectURL).toHaveBeenCalledWith('foo')
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue