Example #1
0
      it('should dispatch a quoteGet action', (done) => {
        const getState = { QuoteView: initialState }
        const expectedActions = [(incomingAction) => {
          // check for QUOTE_GET action only
          if (incomingAction.type !== QUOTE_GET) {
            throw Error('Expected action of type QUOTE_GET')
          }
        }]

        const store = mockStore(getState, expectedActions, done)
        store.dispatch(quoteGetNoDupes())
      })
Example #2
0
 it('should return a function', () => {
   expect(quoteGetNoDupes()).to.be.a('function')
 })