Fix ShortUrlForm test

This commit is contained in:
Alejandro Celaya 2023-08-07 17:47:26 +02:00
parent f16f51a2b3
commit 30455864fa

View file

@ -17,7 +17,15 @@ describe('<ShortUrlForm />', () => {
<ShortUrlForm <ShortUrlForm
mode={mode} mode={mode}
saving={false} saving={false}
initialState={{ validateUrl: true, findIfExists: false, title, longUrl: '' }} initialState={{
validateUrl: true,
findIfExists: false,
title,
longUrl: '',
customSlug: undefined,
shortCodeLength: undefined,
domain: undefined,
}}
onSave={createShortUrl} onSave={createShortUrl}
/> />
</FeaturesProvider>, </FeaturesProvider>,
@ -73,6 +81,9 @@ describe('<ShortUrlForm />', () => {
maxVisits: 20, maxVisits: 20,
findIfExists: false, findIfExists: false,
validateUrl: true, validateUrl: true,
domain: undefined,
shortCodeLength: undefined,
customSlug: undefined,
...extraExpectedValues, ...extraExpectedValues,
}); });
}); });