TestRejectedLike (open)
Waits until a promise fulfulls, and tests if it is rejected
Syntax
LOADLIB "mod::system/lib/testframework.whlib";
OBJECT FUNCTION TestRejectedLike(STRING mask, OBJECT promise, STRING annotation)Parameters
STRING maskLike mask to test the exception's what() against
OBJECT promisePromise to test
STRING annotationMessage to display when the test fails
Return value
OBJECTReturns the exception the promise was rejected with