mirror of
https://github.com/Unleash/unleash.git
synced 2025-09-19 17:52:45 +02:00
Co-authored-by: Ivar Conradi Østhus <ivarconr@gmail.com> Co-authored-by: Christopher Kolstad <chriswk@getunleash.ai> Co-authored-by: Christopher Kolstad <git@chriswk.no>
25 lines
788 B
JavaScript
25 lines
788 B
JavaScript
import React from 'react';
|
|
import UpdateStrategiesComponent from '../update-strategies-component';
|
|
import { shallow } from 'enzyme/build';
|
|
|
|
it('render the create feature page', () => {
|
|
let strategies = [{ name: 'default' }];
|
|
const tree = shallow(
|
|
<UpdateStrategiesComponent
|
|
featureToggleName="some-toggle"
|
|
configuredStrategies={strategies}
|
|
onSubmit={jest.fn()}
|
|
setValue={jest.fn()}
|
|
addStrategy={jest.fn()}
|
|
removeStrategy={jest.fn()}
|
|
moveStrategy={jest.fn()}
|
|
onCancel={jest.fn()}
|
|
updateStrategy={jest.fn()}
|
|
validateName={jest.fn()}
|
|
initCallRequired={false}
|
|
title="title"
|
|
/>
|
|
);
|
|
expect(tree).toMatchSnapshot();
|
|
});
|