feat(Task): Tasks can now be blocked by other tasks.
This commit is contained in:
@ -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 () => {},
|
||||
|
Reference in New Issue
Block a user