We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I want to write test cases for the following function:
Function implementation contains:
function test(){ return new promise(function(resolve, reject){ async.waterfall([ function1(cb){ .... }, function2(cb){ .... }, function3(cb){ ..... } ]); }); }
I have tried writing test cases in following ways:
describe('test method', function(){ it('Should return failed', function(done){ test().should.eventually.be.rejected.and.have.property('code','Failed'); done(); }); });
In this case, the test cases passed but got the error "Unhandled rejection AssertionError" for every test case.
describe('test method', function(){ it('Should return failed',async function(){ var result = await test(); result.should.eventually.be.rejected.and.have.property('code','Failed'); return; }); });`
In this case, I got the error "ReferenceError: regeneratorRuntime is not defined".
Is there any other way for this? Any suggestions?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I want to write test cases for the following function:
Function implementation contains:
I have tried writing test cases in following ways:
In this case, the test cases passed but got the error "Unhandled rejection AssertionError" for every test case.
In this case, I got the error "ReferenceError: regeneratorRuntime is not defined".
Is there any other way for this? Any suggestions?
The text was updated successfully, but these errors were encountered: