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 =
77
77
( ) => formStateKeyCache = { } ; // eslint-disable-line no-return-assign
78
78
79
79
export const clearGetFormCacheForModel =
80
- ( modelString ) => delete formStateKeyCache [ modelString ] ; // eslint-disable-line no-return-assign
80
+ // eslint-disable-next-line
81
+ ( modelString ) => delete formStateKeyCache [ modelString ] ;
81
82
82
83
const getFormStateKeyCached = ( ( ) => ( state , modelString , s = defaultStrategy ) => {
83
84
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) => {
2044
2044
2045
2045
2046
2046
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 ' , ( ) => {
2048
2048
const initialState = getInitialState ( { test1 : { } } ) ;
2049
2049
2050
2050
const store = testCreateStore ( {
@@ -2092,7 +2092,7 @@ Object.keys(testContexts).forEach((testKey) => {
2092
2092
assert . isTrue ( store . getState ( ) . testForm . test1 . $form . submitFailed ) ;
2093
2093
} ) ;
2094
2094
2095
- it ( 'should call onSubmitFailed() prop if if collection item not present at initialization ' , ( ) => {
2095
+ it ( 'validates if item not in initialState ' , ( ) => {
2096
2096
const initialState = getInitialState ( { test1 : { } } ) ;
2097
2097
2098
2098
const store = testCreateStore ( {
You can’t perform that action at this time.
0 commit comments