@@ -9,7 +9,7 @@ describe('blocking', () => {
99 const child = new TaskBuilder ( ) . id ( '12345' ) . build ( ) ;
1010 const childWithoutParent = new TaskBuilder ( ) . id ( '23456' ) . build ( ) ;
1111 const childThatIsDone = new TaskBuilder ( ) . id ( '34567' ) . status ( Status . makeDone ( ) ) . build ( ) ;
12- const parent = new TaskBuilder ( ) . blockedBy ( [ '12345' , '34567' ] ) . build ( ) ;
12+ const parent = new TaskBuilder ( ) . dependsOn ( [ '12345' , '34567' ] ) . build ( ) ;
1313 const allTasks = [ notBlocking , child , childWithoutParent , childThatIsDone , parent ] ;
1414
1515 const isBlocking = new BlockingField ( ) . createFilterOrErrorMessage ( 'is blocking' ) ;
@@ -39,9 +39,9 @@ describe('blocking', () => {
3939 const id1 = '1' ;
4040 const id2 = '2' ;
4141 const id3 = '3' ;
42- const task1 = new TaskBuilder ( ) . id ( id1 ) . blockedBy ( [ id2 ] ) . build ( ) ;
43- const task2 = new TaskBuilder ( ) . id ( id2 ) . blockedBy ( [ id3 ] ) . build ( ) ;
44- const task3 = new TaskBuilder ( ) . id ( id3 ) . blockedBy ( [ id1 ] ) . build ( ) ;
42+ const task1 = new TaskBuilder ( ) . id ( id1 ) . dependsOn ( [ id2 ] ) . build ( ) ;
43+ const task2 = new TaskBuilder ( ) . id ( id2 ) . dependsOn ( [ id3 ] ) . build ( ) ;
44+ const task3 = new TaskBuilder ( ) . id ( id3 ) . dependsOn ( [ id1 ] ) . build ( ) ;
4545 const allTasks = [ task1 , task2 , task3 ] ;
4646
4747 expect ( isBlocking ) . toMatchTaskInTaskList ( task1 , allTasks ) ;
@@ -52,7 +52,7 @@ describe('blocking', () => {
5252 it ( 'should work with Boolean filters' , function ( ) {
5353 const id = 'abc' ;
5454 const task1 = new TaskBuilder ( ) . id ( id ) . build ( ) ;
55- const task2 = new TaskBuilder ( ) . blockedBy ( [ id ] ) . build ( ) ;
55+ const task2 = new TaskBuilder ( ) . dependsOn ( [ id ] ) . build ( ) ;
5656 const allTasks = [ task1 , task2 ] ;
5757
5858 const booleanFilter = new BooleanField ( ) . createFilterOrErrorMessage ( 'NOT ( NOT ( is blocking ) )' ) ;
@@ -70,7 +70,7 @@ describe('blocked', () => {
7070 const blocking = new TaskBuilder ( ) . id ( blockingId ) . build ( ) ;
7171
7272 it ( 'should hide blocked tasks' , ( ) => {
73- const blocked = new TaskBuilder ( ) . blockedBy ( [ blockingId ] ) . build ( ) ;
73+ const blocked = new TaskBuilder ( ) . dependsOn ( [ blockingId ] ) . build ( ) ;
7474 const allTasks = [ blocking , blocked ] ;
7575
7676 expect ( isNotBlocked ) . toBeValid ( ) ;
@@ -86,9 +86,9 @@ describe('blocked', () => {
8686 const blockingCompletedId = 'def' ;
8787 const blockingCompleted = new TaskBuilder ( ) . id ( blockingCompletedId ) . status ( Status . DONE ) . build ( ) ;
8888
89- const blockedByIncomplete = new TaskBuilder ( ) . blockedBy ( [ blockingId ] ) . build ( ) ;
90- const blockedByComplete = new TaskBuilder ( ) . blockedBy ( [ blockingCompletedId ] ) . build ( ) ;
91- const blockedByAll = new TaskBuilder ( ) . blockedBy ( [ blockingId , blockingCompletedId ] ) . build ( ) ;
89+ const blockedByIncomplete = new TaskBuilder ( ) . dependsOn ( [ blockingId ] ) . build ( ) ;
90+ const blockedByComplete = new TaskBuilder ( ) . dependsOn ( [ blockingCompletedId ] ) . build ( ) ;
91+ const blockedByAll = new TaskBuilder ( ) . dependsOn ( [ blockingId , blockingCompletedId ] ) . build ( ) ;
9292
9393 const allTasks = [ blocking , blockedByIncomplete , blockedByComplete , blockedByAll , blockingCompleted ] ;
9494
0 commit comments