-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
State managment for entries #17
Conversation
@@ -0,0 +1,18 @@ | |||
export const SET_ENTRIES = 'SET_ENTRIES'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Definition for rule 'jest/prefer-to-have-length' was not found
src/state/actions.entries.js
Outdated
formId, | ||
pageNumber, | ||
entries | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing semicolon.
src/state/actions.entries.js
Outdated
pageNumber, | ||
entries | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing semicolon.
Pull Request Test Coverage Report for Build 30
💛 - Coveralls |
* @param {Object} state Collection of entries, by form Id and page | ||
* @return {*} | ||
*/ | ||
export const getPageOfEntries = (formId,pageNumber,state) =>{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Definition for rule 'jest/prefer-to-have-length' was not found
src/tests/selectors.test.js
Outdated
@@ -20,6 +20,8 @@ import { | |||
getStyleIncludes, | |||
getOtherSettings | |||
} from "../state/selectors.settings"; | |||
import {entriesReducer} from "../state/reducers"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'entriesReducer' is defined but never used.
} | ||
} | ||
|
||
) ).toEqual( {a:1}) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing semicolon.
} | ||
|
||
) ).toEqual([]); | ||
}) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing semicolon.
@@ -1,5 +1,8 @@ | |||
import * as calderaState from '../state/module'; | |||
import {closeStatus, startSpinner, stopSpinner, updateStatus} from "../state/actions.status"; | |||
import {setEntries} from "../state/actions.entries"; | |||
import {getPageOfEntries} from "../state/selectors.entries"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'getPageOfEntries' is defined but never used.
@@ -1,5 +1,8 @@ | |||
import * as calderaState from '../state/module'; | |||
import {closeStatus, startSpinner, stopSpinner, updateStatus} from "../state/actions.status"; | |||
import {setEntries} from "../state/actions.entries"; | |||
import {getPageOfEntries} from "../state/selectors.entries"; | |||
import {CALDERA_FORMS_ENTRIES_SLUG} from "../state"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'CALDERA_FORMS_ENTRIES_SLUG' is defined but never used.
Code Climate has analyzed commit f883cf8 and detected 6 issues on this pull request. Here's the issue category breakdown:
View more on Code Climate. |
#7