remove one more core:

This commit is contained in:
Artur Paikin 2017-12-07 17:29:42 -05:00
parent 6f510f4679
commit fe8e1cf34c
2 changed files with 3 additions and 3 deletions

View file

@ -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)
})

View file

@ -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')
})