This repository was archived by the owner on Aug 23, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -77,7 +77,8 @@ export const clearGetFormCache =
7777 ( ) => formStateKeyCache = { } ; // eslint-disable-line no-return-assign
7878
7979export const clearGetFormCacheForModel =
80- ( modelString ) => delete formStateKeyCache [ modelString ] ; // eslint-disable-line no-return-assign
80+ // eslint-disable-next-line
81+ ( modelString ) => delete formStateKeyCache [ modelString ] ;
8182
8283const getFormStateKeyCached = ( ( ) => ( state , modelString , s = defaultStrategy ) => {
8384 if ( formStateKeyCache [ modelString ] ) return formStateKeyCache [ modelString ] ;
Original file line number Diff line number Diff 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 ( {
You can’t perform that action at this time.
0 commit comments