当我尝试一个异步函数抛出一个错误时,我得到了这个错误AssertionError: expected [Function] to be a function const fakeData = { email: userData.email, password: 'something but not the password}
expect(async ()
我试图使用TypScript编写黄瓜测试,如下所示:import { Given, Then } from 'cucumber('h1').first().getText()).to.eventually.equal(message).and.notify(callback);然而,Protractor抱怨说:
imp
使用mocha和chai,我试图通过我的第二个测试来获得被拒绝的promise,但是我得到了这个错误Error: the string "error" was thrown, throw an Error}) it('should return the promise without error', asynce