Browse Source

remove one more core:

Artur Paikin 7 years ago
parent
commit
fe8e1cf34c
2 changed files with 3 additions and 3 deletions
  1. 1 1
      src/core/Core.js
  2. 2 2
      src/core/Core.test.js

+ 1 - 1
src/core/Core.js

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

+ 2 - 2
src/core/Core.test.js

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