Skip to content
This repository was archived by the owner on Aug 23, 2022. It is now read-only.

Commit 5b065b1

Browse files
committed
Fixing lint errors
1 parent 7ae99e8 commit 5b065b1

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src/utils/get-form.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,8 @@ export const clearGetFormCache =
7777
() => formStateKeyCache = {}; // eslint-disable-line no-return-assign
7878

7979
export const clearGetFormCacheForModel =
80-
(modelString) => delete formStateKeyCache[modelString]; // eslint-disable-line no-return-assign
80+
// eslint-disable-next-line
81+
(modelString) => delete formStateKeyCache[modelString];
8182

8283
const getFormStateKeyCached = (() => (state, modelString, s = defaultStrategy) => {
8384
if (formStateKeyCache[modelString]) return formStateKeyCache[modelString];

test/form-component-spec.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2044,7 +2044,7 @@ Object.keys(testContexts).forEach((testKey) => {
20442044

20452045

20462046
describe('form validation with models in collections', () => {
2047-
it('should call onSubmitFailed() prop if if collection item present at initialization', () => {
2047+
it('validates if item in initialState', () => {
20482048
const initialState = getInitialState({ test1: {} });
20492049

20502050
const store = testCreateStore({
@@ -2092,7 +2092,7 @@ Object.keys(testContexts).forEach((testKey) => {
20922092
assert.isTrue(store.getState().testForm.test1.$form.submitFailed);
20932093
});
20942094

2095-
it('should call onSubmitFailed() prop if if collection item not present at initialization', () => {
2095+
it('validates if item not in initialState', () => {
20962096
const initialState = getInitialState({ test1: {} });
20972097

20982098
const store = testCreateStore({

0 commit comments

Comments
 (0)