tus10.spec.js 510 B

12345678910111213141516
  1. var test = require('tape')
  2. var Core = require('../src/core/index.js')
  3. var DragDrop = require('../src/plugins/DragDrop.js')
  4. var Tus10 = require('../src/plugins/Tus10.js')
  5. test('uploadSomePizza', function (t) {
  6. const core = new Core()
  7. core
  8. .use(DragDrop, {target: '??'})
  9. .use(Tus10, {endpoint: 'http://master.tus.io:8080/files/'})
  10. .run()
  11. // trigger an upload with a fake blob
  12. // somehow test the resume? or just see if it's successful?
  13. // test the expected/actual results to pass/fail
  14. })