Łatwe czyszczenie końcówek sinonu
Czy istnieje sposób, aby łatwo zresetować wszystkie fałdy sinusoidalne i odcinki, które będą działać bezproblemowo z blokami mokka przed każdym.
Widzę, że piaskownica jest opcją, ale nie widzę, jak można do tego użyć piaskownicy
beforeEach ->
sinon.stub some, 'method'
sinon.stub some, 'mother'
afterEach ->
# I want to avoid these lines
some.method.restore()
some.other.restore()
it 'should call a some method and not other', ->
some.method()
assert.called some.method