newResultChecker("testMethod")// .expect(A boolean value to be true, what it is testing);.expect(sucess,"Somthing to be true").expect(value ==2,"value == 2");
newResultChecker("testMethod")// You can also do it like this. // It will check if the values are equal..expect(value,2,"value == 2");
Send a message when any expect fails
newResultChecker("testMethod")// If a boolean fails it will send this first..fallBack("This test failed").expect(sucess,"Somthing to be true").expect(value ==2,"value == 2");
Do something after
newResultChecker("testMethod").expect(sucess,"Somthing to be true").expect(value ==2,"value == 2").then(() =>aMethod());
You can just write code after a result checker tho.