test(modal): fix custom matchers
test(modal): fix custom matchers

- Trigger a test failure if resolved on rejected promise and rejected on resolved promise
- Trigger a test failure if neither resolved or rejected when expected resolved/rejected promise

Closes #6195

Kpler/bootstrap,BookingBug/bootstrap,vfiles/bootstrap,caoruiy/bootstrap,byronigoe/bootstrap,Servoy/bootstrap,angular-ui/bootstrap,vfiles/bootstrap,fpipita/bootstrap,looker/bootstrap,byronigoe/bootstrap,angular-ui/bootstrap,looker/bootstrap,fpipita/bootstrap,BookingBug/bootstrap,RobJacobs/bootstrap,Servoy/bootstrap,icfantv/bootstrap,RobJacobs/bootstrap,Kpler/bootstrap,icfantv/bootstrap,caoruiy/bootstrap