Tus acceptance test

This commit is contained in:
Harry Hedger 2016-03-02 18:23:35 -05:00
parent a52f78fed3
commit 4cf2f42fc1

16
test/tus10.spec.js Normal file
View 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
})