Мокко крючки, как before(), after(), beforeEach(), afterEach()
не работают. Также метод only
тоже не работает. Ни один из beforeEach
не вызывается. Я получаю ошибку has no method 'only'
. Ниже приведен код.мокко крючки, только методы не работают
describe('Array', function(){
beforeEach(function(){
console.log('before every test')
})
describe.only('#indexOf()', function(){
beforeEach(function(){
console.log('before every test')
})
it.only('should return -1 unless present', function(){
assert.equal(1,2)
})
it('should return the index when present', function(){
assert.equal(1,2);
})
})
})
beforeEach(function(){
console.log('before every test')
})