mirror of
https://github.com/shlinkio/shlink-web-client.git
synced 2025-01-09 09:47:28 +03:00
Fix ShortUrlForm test
This commit is contained in:
parent
f16f51a2b3
commit
30455864fa
1 changed files with 12 additions and 1 deletions
|
@ -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,
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue