Skip to content

Commit

Permalink
fix: header test (#423)
Browse files Browse the repository at this point in the history
  • Loading branch information
snitin4260 authored Mar 14, 2023
1 parent c28b337 commit 87219cb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/molecules/header-card/header-card.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { textStory, config } from "../../__fixtures__";

describe("Header Card", () => {
it("should render Default header card component", () => {
const wrapper = shallow(<HeaderCardBase story={textStory} config={config} />);
const wrapper = shallow(<HeaderCardBase story={textStory} config={config} storyType="text" />);
expect(wrapper.find(DefaultHeaderCard).length).toBe(1);
});
it("should call headerCardRender when passed in opts", () => {
Expand All @@ -17,7 +17,7 @@ describe("Header Card", () => {
headerCardRender
}
};
const wrapper = shallow(<HeaderCardBase story={textStory} config={modifiedConfig} />);
const wrapper = shallow(<HeaderCardBase story={textStory} config={modifiedConfig} storyType="text" />);
expect(headerCardRender.mock.calls.length).toBe(1);
expect(wrapper.find(DefaultHeaderCard).length).toBe(0);
});
Expand Down

0 comments on commit 87219cb

Please sign in to comment.