@@ -16,10 +16,10 @@ function assertStateVar(property: string, processName: string, expectedRaw: any)
1616
1717 expect ( actualValue ) . to . eq ( expected , `The ${ property } of the current state does not have the expected value` ) ;
1818}
19- Then ( 'the state {property} of the {string} process has {string} is {string}' , assertStateVar ) ;
20- Then ( 'the state {property} is {string}' , ( property , expected ) => assertStateVar ( property , 'main' , expected ) ) ;
21- Then ( 'the state {property} of the {string} process is:' , ( property , process , expected ) => assertStateVar ( property , process , parseData ( expected ) ) ) ;
22- Then ( 'the state {property} is:' , ( property , expected ) => assertStateVar ( property , 'main' , parseData ( expected ) ) ) ;
19+ Then ( 'the state {property} of the {string} process has {string} is/are {string}' , assertStateVar ) ;
20+ Then ( 'the state {property} is/are {string}' , ( property , expected ) => assertStateVar ( property , 'main' , expected ) ) ;
21+ Then ( 'the state {property} of the {string} process is:/are: ' , ( property , process , expected ) => assertStateVar ( property , process , parseData ( expected ) ) ) ;
22+ Then ( 'the state {property} is:/are: ' , ( property , expected ) => assertStateVar ( property , 'main' , parseData ( expected ) ) ) ;
2323
2424function assertInstructions ( actorKey : string , processName : string , expectedRaw : string ) {
2525 const process = world . getProcess ( processName ) ;
@@ -32,7 +32,7 @@ function assertInstructions(actorKey: string, processName: string, expectedRaw:
3232
3333 expect ( instructions . trim ( ) ) . to . eq ( expected . trim ( ) , `Actor '${ actorKey } ' does not have the expected instructions` ) ;
3434}
35- Then ( 'actor {string} in the {string} process has instructions {string}' , assertInstructions ) ;
36- Then ( 'actor {string} has instructions {string}' , ( actorKey , expected ) => assertInstructions ( actorKey , 'main' , expected ) ) ;
37- Then ( 'actor {string} in the {string} process has instructions :' , assertInstructions ) ;
38- Then ( 'actor {string} has instructions :' , ( actorKey , expected ) => assertInstructions ( actorKey , 'main' , expected ) ) ;
35+ Then ( 'actor {string} in the {string} process has (the )instruction(s) {string}' , assertInstructions ) ;
36+ Then ( 'actor {string} has (the )instruction(s) {string}' , ( actorKey , expected ) => assertInstructions ( actorKey , 'main' , expected ) ) ;
37+ Then ( 'actor {string} in the {string} process has (the )instruction(s) :' , assertInstructions ) ;
38+ Then ( 'actor {string} has (the )instruction(s) :' , ( actorKey , expected ) => assertInstructions ( actorKey , 'main' , expected ) ) ;
0 commit comments