UNPKG

@nlabs/arkhamjs-example-react

Version:
16 lines (13 loc) 470 B
import {AppConstants} from '../../constants/AppConstants'; import {AppStore} from './AppStore'; describe('AppStore', () => { const store = new AppStore(); describe('#onAction', () => { it('should listen for AppConstants.UPDATE_CONTENT', () => { let state = store.initialState(); const content = 'test'; state = store.onAction(AppConstants.UPDATE_CONTENT, {content}, state); return expect(state.content).toBe(content); }); }); });