Skip to content

Commit 42dbee5

Browse files
committed
fixed failing tests in validator-ajv8
1 parent 95ebfe1 commit 42dbee5

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

packages/utils/test/schema/getDefaultFormStateTest.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1922,15 +1922,14 @@ export default function getDefaultFormStateTest(testValidator: TestValidatorType
19221922
];
19231923

19241924
test('getDefaultFormState', () => {
1925-
expect(getDefaultFormState(testValidator, schema, formData, schema, includeUndefinedValues)).toEqual(
1925+
expect(getDefaultFormState(testValidator, schema, formData, undefined, includeUndefinedValues)).toEqual(
19261926
expected,
19271927
);
19281928
});
19291929

19301930
test('computeDefaults', () => {
19311931
expect(
19321932
computeDefaults(testValidator, schema, {
1933-
rootSchema: schema,
19341933
rawFormData: formData,
19351934
includeUndefinedValues,
19361935
shouldMergeDefaultsIntoFormData: true,
@@ -1944,7 +1943,6 @@ export default function getDefaultFormStateTest(testValidator: TestValidatorType
19441943
testValidator,
19451944
schema,
19461945
{
1947-
rootSchema: schema,
19481946
includeUndefinedValues,
19491947
},
19501948
[
@@ -1962,7 +1960,6 @@ export default function getDefaultFormStateTest(testValidator: TestValidatorType
19621960
testValidator,
19631961
schema,
19641962
{
1965-
rootSchema: schema,
19661963
includeUndefinedValues,
19671964
},
19681965
[

0 commit comments

Comments
 (0)