Created
May 23, 2020 07:14
-
-
Save hwchong/37cc5cf7e1f2fbec754951c4f4bcea28 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let assert = require('assert') | |
describe('blah blah', () => { | |
before(done => { | |
console.log('before') | |
done() | |
}) | |
beforeEach(done => { | |
console.log('beforeEach') | |
done() | |
}) | |
after(done => { | |
console.log('after') | |
done() | |
}) | |
describe('blah lvl 1', () => { | |
before(done => { | |
console.log('before lvl 1') | |
done() | |
}) | |
beforeEach(done => { | |
console.log('beforeEach lvl 1') | |
done() | |
}) | |
it('first test', () => { | |
assert.equal([1, 2, 3].indexOf(4), -1) | |
}) | |
it('second test', () => { | |
assert.equal([1, 2, 3].indexOf(4), -1) | |
}) | |
it('third test', () => { | |
assert.equal([1, 2, 3].indexOf(4), -1) | |
}) | |
}) | |
describe('blah lvl 2', () => { | |
it('lvl 2 first test', () => { | |
assert.equal([1, 2, 3].indexOf(4), -1) | |
}) | |
it('lvl 2 second test', () => { | |
assert.equal([1, 2, 3].indexOf(4), -1) | |
}) | |
it('lvl 2 third test', () => { | |
assert.equal([1, 2, 3].indexOf(4), -1) | |
}) | |
}) | |
}) | |
web_1 | blah blah | |
web_1 | before | |
web_1 | blah lvl 1 | |
web_1 | before lvl 1 | |
web_1 | beforeEach | |
web_1 | beforeEach lvl 1 | |
web_1 | ✓ first test | |
web_1 | beforeEach | |
web_1 | beforeEach lvl 1 | |
web_1 | ✓ second test | |
web_1 | beforeEach | |
web_1 | beforeEach lvl 1 | |
web_1 | ✓ third test | |
web_1 | blah lvl 2 | |
web_1 | beforeEach | |
web_1 | ✓ lvl 2 first test | |
web_1 | beforeEach | |
web_1 | ✓ lvl 2 second test | |
web_1 | beforeEach | |
web_1 | ✓ lvl 2 third test | |
web_1 | after | |
web_1 | | |
web_1 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment