!1 Merge back to master

Merge pull request !1 from dev branch
This commit is contained in:
hekk 2018-05-27 21:32:55 +08:00
parent 30c963a5f0
commit 61a1c93f0f
89 changed files with 15859 additions and 2 deletions

View file

@ -0,0 +1,25 @@
import { testAuth } from "./api_auth_test";
import { testUploadOneFile } from "./api_upload_test";
import {
testAddLocalFiles,
testSetDownLimit,
testShadowPublishId
} from "./api_share_test";
import { testUpDownBatch } from "./api_up_down_batch_test";
console.log("Test started");
const fileName = `test_filename${Date.now()}`;
const file = new File(["foo"], fileName, {
type: "text/plain"
});
testAuth()
.then(testShadowPublishId)
.then(() => testUploadOneFile(file, fileName))
.then(testSetDownLimit)
.then(testAddLocalFiles)
.then(testUpDownBatch)
.then(() => {
console.log("Tests are finished");
});