mirror of
https://github.com/transloadit/uppy.git
synced 2026-01-23 02:25:07 +00:00
Tus acceptance test
This commit is contained in:
parent
a52f78fed3
commit
4cf2f42fc1
1 changed files with 16 additions and 0 deletions
16
test/tus10.spec.js
Normal file
16
test/tus10.spec.js
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
var test = require('tape')
|
||||
var Core = require('../src/core/index.js')
|
||||
var DragDrop = require('../src/plugins/DragDrop.js')
|
||||
var Tus10 = require('../src/plugins/Tus10.js')
|
||||
|
||||
test('uploadSomePizza', function (t) {
|
||||
const core = new Core()
|
||||
core
|
||||
.use(DragDrop, {target: '??'})
|
||||
.use(Tus10, {endpoint: 'http://master.tus.io:8080/files/'})
|
||||
.run()
|
||||
|
||||
// trigger an upload with a fake blob
|
||||
// somehow test the resume? or just see if it's successful?
|
||||
// test the expected/actual results to pass/fail
|
||||
})
|
||||
Loading…
Add table
Add a link
Reference in a new issue