-
-
Notifications
You must be signed in to change notification settings - Fork 3k
Closed
Labels
type: buga defect, confirmed by a maintainera defect, confirmed by a maintainer
Milestone
Description
If I have these two test suites (just showing the first one)
describe 'Boolean',->
it 'is_True',->
expect(true.is_True ).to.be.an('Function')
expect(false.is_True ).to.be.an('Function')
expect(true.is_True() ).to.be.true
expect(false.is_True() ).to.be.false
expect((1==1).is_True()).to.be.true
expect((1==2).is_True()).to.be.false
expect((1!=1).is_True()).to.be.false
and
describe 'Assert | Boolean',->
it 'assert_Is_True', ->
true.assert_Is_True.assert_Is_Function()
true.assert_Is_True().assert_Is_True()
(-> false.assert_Is_True()).assert_Throws()
If I add .only to the first one :
describe.only 'Boolean',->
both will now be executed:
and I would expect only the first one to execute
I assuming that mocha behind the scenes is not keeping a pointer to the actual tests to execute, it is just keeping the name/string, which is then searched on all tests/describes loaded (is that correct?)
Metadata
Metadata
Assignees
Labels
type: buga defect, confirmed by a maintainera defect, confirmed by a maintainer