Skip to content

Commit

Permalink
updated unit tests
Browse files Browse the repository at this point in the history
Signed-off-by: Pujal <pujal.gandhi@broadcom.com>
  • Loading branch information
pujal0909 committed Feb 3, 2025
1 parent 3d24f6d commit 471e754
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -635,6 +635,7 @@ describe("Copy", () => {
promptForLikeNamedMembers }
);
expect(promptForLikeNamedMembers).toHaveBeenCalledWith();
expect(response.success).toEqual(true);

});
it("should not display a prompt for like named members if there are no duplicate member names", async () => {
Expand All @@ -646,7 +647,7 @@ describe("Copy", () => {
replace: false,
promptForLikeNamedMembers }
);

expect(response.success).toEqual(true);
expect(promptForLikeNamedMembers).not.toHaveBeenCalled();
});
it("should throw error if user declines to replace the dataset", async () => {
Expand Down

0 comments on commit 471e754

Please sign in to comment.