Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- it("should store selected filter", () => {
- const selectedFilterData = {
- id: 4321,
- filterGroupId: 1234,
- filterName: "gender",
- text: "Male",
- value: "pdl_profile_gender_1"
- }
- const action = { type: FILTER_SELECTED, data: selectedFilterData }
- Reducer(filters).expect(action).toReturnState({
- 1234: {
- id: 1234,
- selectedFilters: [
- {
- id: 4321,
- filterName: "gender",
- text: "Male",
- value: "pdl_profile_gender_1"
- }
- ]
- }
- })
- })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement