Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
KalliSfak committed Sep 20, 2023
1 parent bb50ed3 commit 2ed020e
Showing 1 changed file with 0 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -89,15 +89,6 @@ describe("ImageDisplay", () => {
);
});

it("should not display div with class 'menu-background'", () => {
const { wrapper } = setup({ isEditMode: false });

const div = wrapper.find(".menu-background");
console.log(wrapper.props());

expect(div.exists()).toBe(false);
});

describe("When alternative text is defined", () => {
it("should have set alt correctly", () => {
const alternativeText = "alternative text";
Expand Down Expand Up @@ -150,14 +141,6 @@ describe("ImageDisplay", () => {
expect(src).toBe(previewUrl);
});

it("should display div with class 'menu-background'", () => {
const { wrapper } = setup({ isEditMode: true });

const div = wrapper.find(".menu-background");

expect(div.exists()).toBe(true);
});

describe("When alternative text is defined", () => {
it("should have set alt correctly", () => {
const alternativeText = "alternative text";
Expand Down

0 comments on commit 2ed020e

Please sign in to comment.