mirror of
https://github.com/strapi/strapi.git
synced 2025-09-26 08:52:26 +00:00
prompt test fiw
This commit is contained in:
parent
ef74880a6b
commit
2e8dc352ad
@ -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();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user