1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-12-22 19:07:54 +01:00

fix: fix update-variant-test

This commit is contained in:
Ivar Conradi Østhus 2021-02-24 11:22:03 +01:00
parent 73c0c8beb0
commit 5cab5754a3

View File

@ -19,6 +19,7 @@ test('renders correctly with without variants', () => {
removeVariant={jest.fn()}
updateVariant={jest.fn()}
stickinessOptions={['default']}
updateStickiness={jest.fn()}
hasPermission={permission => permission === UPDATE_FEATURE}
/>
</MemoryRouter>
@ -37,6 +38,7 @@ test('renders correctly with without variants and no permissions', () => {
removeVariant={jest.fn()}
updateVariant={jest.fn()}
stickinessOptions={['default']}
updateStickiness={jest.fn()}
hasPermission={() => false}
/>
</MemoryRouter>
@ -94,6 +96,7 @@ test('renders correctly with with variants', () => {
removeVariant={jest.fn()}
updateVariant={jest.fn()}
stickinessOptions={['default']}
updateStickiness={jest.fn()}
hasPermission={permission => permission === UPDATE_FEATURE}
/>
</MemoryRouter>