Skip to content

Commit

Permalink
onProcessingStart test
Browse files Browse the repository at this point in the history
  • Loading branch information
smart-massi committed Oct 18, 2023
1 parent b003505 commit d6576af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/__tests__/AsyncBatch.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ test("Instance of AsyncBatch", async () => {
return new Promise((resolve) => {
const datas = Array.from({ length: 7 }, (_, i) => i);
const asyncBatch = AsyncBatch.create(datas, (data) => console.log(data), { maxConcurrency: 3, autoStart: true });
asyncBatch.events.onProcessingStarted((event) => {
asyncBatch.events.onProcessingStart((event) => {
console.log("onProcessingStarted", event.data);
});
asyncBatch.events.onStarted((a) => {
Expand Down

0 comments on commit d6576af

Please sign in to comment.