import * as SUT from './routing.actions' describe('routing Actions', () => { describe('navigationInitiatedAction', () => { it('should return an action of the correct type and payload', () => { // when ... we call our action creator const result = SUT.navigationInitiated.apply(null, ['test', undefined as any]) // then ... the action should be returned as expected expect(result.type).toBe('routing/navigationInitiated') expect(result.payload).toEqual({ routeName: 'test', params: undefined }) }) }) })