feat(Task): Tasks can now be blocked by other tasks.

This commit is contained in:
2023-08-04 13:03:28 +02:00
parent 94e327c722
commit 05f91c3e35
3 changed files with 34 additions and 28 deletions

View File

@ -12,13 +12,6 @@ tap.test('new Task() should return a new task', async () => {
expect(testTask).toBeInstanceOf(taskbuffer.Task);
});
tap.test('should be able to get the task state', async () => {
const testTask = new taskbuffer.Task({
taskFunction: async () => {},
});
expect(testTask.state).toEqual('ready');
});
tap.test('should have bufferMax set to the provided value', async () => {
const task2 = new taskbuffer.Task({
taskFunction: async () => {},