From 9bb07f50983d6f8f49a5c87d5d0ca9133795b663 Mon Sep 17 00:00:00 2001 From: Satyapriya Bai Date: Mon, 13 May 2024 11:29:28 +0530 Subject: [PATCH] updated snap. --- .../__snapshots__/TreeComponent.test.tsx.snap | 10 ++++++++++ .../DeleteCollectionConfirmationPane.test.tsx | 12 +++++++++--- .../DeleteCollectionConfirmationPane.tsx | 2 +- 3 files changed, 20 insertions(+), 4 deletions(-) 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();