-
-
Notifications
You must be signed in to change notification settings - Fork 3k
Closed
Labels
type: questionsupport questionsupport question
Description
Mocha 3.5
Node 8.4
describe('Test Suite 1', async function(){
let email = await faker.internet.email();
it('should print email', function(){
email.should.not.be.a('string')
)}
})
Running this test should give
Test Suite 1
✓should print email
But its giving
0 passing
Also modifying the above code to
describe('Test Suite 1', async function(){
let email;
it('should print email', async function(){
email = await faker.internet.email()
email.should.not.be.a('string')
)}
})
Runs the test but doesn't print the name of describe i.e Test Suite 1
✓should print email
Removing the async from describe and putting it in it works fine
describe('Test Suite 1', function(){
it('should print email',async function(){
let email = await faker.internet.email();
email.should.not.be.a('string')
)}
})
Test Suite 1
✓should print email
Also .only and .skip do not work when async function is included in the describe block
ceefour, cblanc, tannakartikey, raszi, joelpurra and 24 more
Metadata
Metadata
Assignees
Labels
type: questionsupport questionsupport question