diff --git a/src/Explorer/Controls/TreeComponent/__snapshots__/TreeComponent.test.tsx.snap b/src/Explorer/Controls/TreeComponent/__snapshots__/TreeComponent.test.tsx.snap index dda586200..3a43e7bab 100644 --- a/src/Explorer/Controls/TreeComponent/__snapshots__/TreeComponent.test.tsx.snap +++ b/src/Explorer/Controls/TreeComponent/__snapshots__/TreeComponent.test.tsx.snap @@ -174,6 +174,11 @@ exports[`TreeNodeComponent renders a simple node (sorted children, expanded) 1`] { 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/DeleteCollectionConfirmationPane/DeleteCollectionConfirmationPane.tsx b/src/Explorer/Panes/DeleteCollectionConfirmationPane/DeleteCollectionConfirmationPane.tsx index 2a8bc49a1..ee80aac1d 100644 --- a/src/Explorer/Panes/DeleteCollectionConfirmationPane/DeleteCollectionConfirmationPane.tsx +++ b/src/Explorer/Panes/DeleteCollectionConfirmationPane/DeleteCollectionConfirmationPane.tsx @@ -37,7 +37,7 @@ export const DeleteCollectionConfirmationPane: FunctionComponent => { const collection = useSelectedNode.getState().findSelectedCollection();