Exemplo n.º 1
0
 it('Should call dispatch exactly once.', () => {
   updateLocation({ dispatch: _dispatchSpy })('/')
   expect(_dispatchSpy.should.have.been.calledOnce)
 })
Exemplo n.º 2
0
 it('Should return a function (is a thunk).', () => {
   expect(updateLocation({ dispatch: _dispatchSpy })).to.be.a('function')
 })