Remove backButtonAction from unit test.

This commit is contained in:
bmauger 2021-12-21 13:08:44 -05:00
parent 4050f7faa1
commit 05b4042f36
2 changed files with 0 additions and 17 deletions

View file

@ -14,19 +14,4 @@ describe("FunnelSubHeader.vue", () => {
expect(wrapper.find("h2").text()).toContain("FunnelSubHeader Content");
wrapper.unmount();
});
it("Should render the button inside of header if backButtonAction provided", () => {
// Act
const testFn = () => {}
const wrapper = shallowMount(FunnelSubHeader, {
propsData: {
text: "FunnelSubHeader Content",
hasBackButton: true,
backButtonAction: testFn,
},
});
// Assert
expect(wrapper.find("h2").find("button").text()).toContain("FunnelSubHeader Content");
wrapper.unmount();
});
});

View file

@ -11,9 +11,7 @@
</h2>
<buttonBack
v-if="hasBackButton"
:backButtonAccessibleText="backButtonAccessibleText"
:backButtonAction="backButtonAction"
:backButtonUrl="backButtonUrl"
/>
</div>
</div>