prompt test fiw

This commit is contained in:
Virginie Ky 2019-07-31 19:17:32 +02:00
parent ef74880a6b
commit 2e8dc352ad

View File

@ -241,6 +241,7 @@ describe('CTB <GroupPage />', () => {
const wrapper = shallow(<GroupPage {...props} />); const wrapper = shallow(<GroupPage {...props} />);
expect(wrapper.state()).toEqual({ expect(wrapper.state()).toEqual({
showWarning: false, showWarning: false,
removePrompt: false,
attrToDelete: null, attrToDelete: null,
}); });
@ -250,6 +251,7 @@ describe('CTB <GroupPage />', () => {
expect(wrapper.state()).toEqual({ expect(wrapper.state()).toEqual({
showWarning: true, showWarning: true,
removePrompt: false,
attrToDelete: null, attrToDelete: null,
}); });
}); });
@ -647,6 +649,7 @@ describe('CTB <GroupPage />, lifecycle', () => {
handleClickOnTrashIcon(0); handleClickOnTrashIcon(0);
expect(wrapper.state()).toEqual({ expect(wrapper.state()).toEqual({
attrToDelete: 0, attrToDelete: 0,
removePrompt: false,
showWarning: true, showWarning: true,
}); });
handleDeleteAttribute(); handleDeleteAttribute();