diff --git a/src/Explorer/Panes/DeleteCollectionConfirmationPane/DeleteCollectionConfirmationPane.test.tsx b/src/Explorer/Panes/DeleteCollectionConfirmationPane/DeleteCollectionConfirmationPane.test.tsx index 569017247..eaa5db8bc 100644 --- a/src/Explorer/Panes/DeleteCollectionConfirmationPane/DeleteCollectionConfirmationPane.test.tsx +++ b/src/Explorer/Panes/DeleteCollectionConfirmationPane/DeleteCollectionConfirmationPane.test.tsx @@ -52,7 +52,9 @@ describe("Delete Collection Confirmation Pane", () => { describe("shouldRecordFeedback()", () => { it("should return true if last collection and database does not have shared throughput else false", () => { - const wrapper = shallow( undefined} />); + const wrapper = shallow( + undefined} lastFocusedElement={undefined} />, + ); expect(wrapper.exists(".deleteCollectionFeedback")).toBe(false); const database = { id: ko.observable("testDB") } as Database; @@ -109,7 +111,9 @@ describe("Delete Collection Confirmation Pane", () => { }); it("should call delete collection", () => { - const wrapper = mount( undefined} />); + const wrapper = mount( + undefined} lastFocusedElement={undefined} />, + ); expect(wrapper).toMatchSnapshot(); expect(wrapper.exists("#confirmCollectionId")).toBe(true); @@ -126,7 +130,9 @@ describe("Delete Collection Confirmation Pane", () => { }); it("should record feedback", async () => { - const wrapper = mount( undefined} />); + const wrapper = mount( + undefined} lastFocusedElement={undefined} />, + ); expect(wrapper.exists("#confirmCollectionId")).toBe(true); wrapper .find("#confirmCollectionId") diff --git a/src/Explorer/Panes/DeleteDatabaseConfirmationPanel.test.tsx b/src/Explorer/Panes/DeleteDatabaseConfirmationPanel.test.tsx index fbde638c7..d2c70a952 100644 --- a/src/Explorer/Panes/DeleteDatabaseConfirmationPanel.test.tsx +++ b/src/Explorer/Panes/DeleteDatabaseConfirmationPanel.test.tsx @@ -49,7 +49,9 @@ describe("Delete Database Confirmation Pane", () => { }); it("shouldRecordFeedback() should return true if last non empty database or is last database that has shared throughput", () => { - const wrapper = shallow( undefined} />); + const wrapper = shallow( + undefined} lastFocusedElement={undefined} />, + ); expect(wrapper.exists(".deleteDatabaseFeedback")).toBe(true); useDatabases.getState().addDatabases([database]); @@ -59,7 +61,9 @@ describe("Delete Database Confirmation Pane", () => { }); it("Should call delete database", () => { - const wrapper = mount( undefined} />); + const wrapper = mount( + undefined} lastFocusedElement={undefined} />, + ); expect(wrapper).toMatchSnapshot(); expect(wrapper.exists("#confirmDatabaseId")).toBe(true); @@ -74,7 +78,9 @@ describe("Delete Database Confirmation Pane", () => { }); it("should record feedback", async () => { - const wrapper = mount( undefined} />); + const wrapper = mount( + undefined} lastFocusedElement={undefined} />, + ); expect(wrapper.exists("#confirmDatabaseId")).toBe(true); wrapper .find("#confirmDatabaseId")