Skip to content
This repository has been archived by the owner on Jan 1, 2024. It is now read-only.

Commit

Permalink
fix(reducers/links): fix tests (payload should be array)
Browse files Browse the repository at this point in the history
fix(reducers/links): fix tests (payload should be array)
  • Loading branch information
Metnew committed Nov 4, 2017
1 parent e09c965 commit 8fbd57c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/common/reducers/links/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,15 @@ describe('LINKS REDUCER', () => {
})

it('should handle GET_LINKS_SUCCESS', () => {
const payload = {
item: 'payload'
}
const payload = [{item: 'payload'}]

const success = {
type: GET_LINKS_SUCCESS,
payload
}
expect(reducer(initialState, success)).toEqual({
...initialState,
count: 1,
entities: payload,
isLoaded: true,
isLoading: false
Expand All @@ -38,6 +37,7 @@ describe('LINKS REDUCER', () => {
}
expect(reducer(initialState, fail)).toEqual({
...initialState,
count: 0,
errors: {
hmm: 'thatsanerror'
},
Expand Down

0 comments on commit 8fbd57c

Please sign in to comment.