diff options
author | Liam Fallon <liam.fallon@est.tech> | 2021-09-10 10:14:25 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2021-09-10 10:14:25 +0000 |
commit | 4ee6cfe3c0c507370118348d782b14a09e1b3c53 (patch) | |
tree | 78ae07b056e1f28859fd93b4ba71f1c2ee4d5755 /gui-clamp/ui-react/src/components/dialogs/InstantiationManagementModal.test.js | |
parent | 1f68035b96e9336b737bc9a5d055c5ffdd016813 (diff) | |
parent | a090a83268cfd8b1341c266d32ccfb670b9f0e8c (diff) |
Merge "Add Delete Instantiation Functionality."
Diffstat (limited to 'gui-clamp/ui-react/src/components/dialogs/InstantiationManagementModal.test.js')
-rw-r--r-- | gui-clamp/ui-react/src/components/dialogs/InstantiationManagementModal.test.js | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/gui-clamp/ui-react/src/components/dialogs/InstantiationManagementModal.test.js b/gui-clamp/ui-react/src/components/dialogs/InstantiationManagementModal.test.js index 61f8c1a..25292d0 100644 --- a/gui-clamp/ui-react/src/components/dialogs/InstantiationManagementModal.test.js +++ b/gui-clamp/ui-react/src/components/dialogs/InstantiationManagementModal.test.js @@ -22,27 +22,27 @@ import React from "react"; import toJson from "enzyme-to-json"; import { createMemoryHistory } from "history"; import { act } from "react-dom/test-utils"; -import InstantiationManagementModal from "./ControlLoop/InstantiationManagementModal"; +import ChangeOrderStateModal from "./ControlLoop/ChangeOrderStateModal"; describe('Verify InstantiationManagementModal', () => { it("renders without crashing", () => { - shallow(<InstantiationManagementModal />); + shallow(<ChangeOrderStateModal />); }); it("renders correctly", () => { - const tree = shallow(<InstantiationManagementModal />); + const tree = shallow(<ChangeOrderStateModal />); expect(toJson(tree)).toMatchSnapshot(); }); it('should have save button element', () => { - const container = shallow(<InstantiationManagementModal/>) + const container = shallow(<ChangeOrderStateModal/>) expect(container.find('[variant="primary"]').length).toEqual(1); }); it('handleSave called when save button clicked', () => { const history = createMemoryHistory(); - const component = mount(<InstantiationManagementModal history={ history }/>) + const component = mount(<ChangeOrderStateModal history={ history }/>) const logSpy = jest.spyOn(console, 'log'); act(() => { @@ -52,13 +52,13 @@ describe('Verify InstantiationManagementModal', () => { }); it('should have close button element', () => { - const container = shallow(<InstantiationManagementModal/>) + const container = shallow(<ChangeOrderStateModal/>) expect(container.find('[variant="secondary"]').length).toEqual(1); }); it('handleClose called when close button clicked', () => { const history = createMemoryHistory(); - const component = mount(<InstantiationManagementModal history={ history }/>) + const component = mount(<ChangeOrderStateModal history={ history }/>) const logSpy = jest.spyOn(console, 'log'); act(() => { |