使用以下实现尝试了rest api测试:-https://gitlab.com/Baasie/serenityjs-rest-example/tree/master
lastResponse在未解决承诺后作为未定义出现。 有关如何解决此问题的任何信息?
export const ResponseMessage = () => Question.about(`The Response Message`, actor =>
CallAnApi.as(actor).getLastResponse() as PromiseLike<AxiosResponse>,
);
export const hasStatusOK = () => question => question.then(function(lastResponse){
expect(lastResponse.status).to.equal(200);
});
AssertionError:预期未定义等于200