import * as SUT from './App.actions' describe('App Actions', () => { describe('navigateToHomeScreen', () => { it('should return an action of type app/navigateToHomeScreen', () => { // when ... we call the initApp action creator const action = SUT.navigateToHomeScreen() const expectedAction = { type: 'app/navigateToHomeScreen', } // then we should expect it to create an action with the correct type and payload expect(action).toEqual(expectedAction) }) }) describe('navigateToSecondScreen', () => { it('should return an action of type app/navigateToSecondScreen', () => { // when ... we call the initAppSuccess action creator const action = SUT.navigateToSecondScreen() const expectedAction = { type: 'app/navigateToSecondScreen', } // then we should expect it to create an action with the correct type expect(action).toEqual(expectedAction) }) }) })