Sfoglia il codice sorgente

Hack fix acceptance tests

Artur Paikin 9 anni fa
parent
commit
2730b048f7
2 ha cambiato i file con 3 aggiunte e 9 eliminazioni
  1. 2 8
      src/core/Core.js
  2. 1 1
      test/acceptance/Driver.js

+ 2 - 8
src/core/Core.js

@@ -40,15 +40,9 @@ export default class Core {
 
     // for debugging and testing
     global.UppyState = this.state
-    global.UppyAddFile = this.addFile.bind(this)
 
-    this.updateAll = this.updateAll.bind(this)
-    this.setState = this.setState.bind(this)
-    this.getState = this.getState.bind(this)
-    this.use = this.use.bind(this)
-    this.actions = this.actions.bind(this)
-    this.run = this.run.bind(this)
-    this.getPlugin = this.getPlugin.bind(this)
+    global.UppyAddFiles = this.addFile.bind(this)
+    global.UppyAddFile = this.addFile.bind(this)
   }
 
   /**

+ 1 - 1
test/acceptance/Driver.js

@@ -10,7 +10,7 @@ function uppySelectFakeFile () {
     {type: 'image/svg+xml'}
   )
   blob['name'] = 'myDumbSVG'
-  window.UppyAddFile([blob], 'smth')
+  window.UppyAddFiles([blob], 'smth')
 }
 
 // https://wiki.saucelabs.com/display/DOCS/Annotating+Tests+with+Selenium's+JavaScript+Executor