parent
30c963a5f0
commit
61a1c93f0f
89 changed files with 15859 additions and 2 deletions
25
client/libs/test/api_test.js
Normal file
25
client/libs/test/api_test.js
Normal 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");
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue