mirror of
https://github.com/captbaritone/webamp.git
synced 2026-07-25 11:04:00 +00:00
Add dropbox support
This commit is contained in:
parent
700b7392ca
commit
33e33b2dec
13 changed files with 250 additions and 86 deletions
20
loadQueue.test.js
Normal file
20
loadQueue.test.js
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
import LoadQueue from "./loadQueue";
|
||||
|
||||
describe("LoadQueue", () => {
|
||||
it("executes some promises", () => {
|
||||
const results = [];
|
||||
const makePushPromise = n => {
|
||||
return new Promise(resolve => {
|
||||
results.push(n);
|
||||
resolve();
|
||||
});
|
||||
};
|
||||
|
||||
const task1 = makePushPromise(1);
|
||||
const task2 = makePushPromise(2);
|
||||
const task3 = makePushPromise(3);
|
||||
const task4 = makePushPromise(4);
|
||||
|
||||
const loadQueue = new LoadQueue({ threads: 4 });
|
||||
});
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue