Remove backButtonAction from unit test.
This commit is contained in:
parent
4050f7faa1
commit
05b4042f36
2 changed files with 0 additions and 17 deletions
|
|
@ -14,19 +14,4 @@ describe("FunnelSubHeader.vue", () => {
|
||||||
expect(wrapper.find("h2").text()).toContain("FunnelSubHeader Content");
|
expect(wrapper.find("h2").text()).toContain("FunnelSubHeader Content");
|
||||||
wrapper.unmount();
|
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();
|
|
||||||
});
|
|
||||||
});
|
});
|
||||||
|
|
|
||||||
|
|
@ -11,9 +11,7 @@
|
||||||
</h2>
|
</h2>
|
||||||
<buttonBack
|
<buttonBack
|
||||||
v-if="hasBackButton"
|
v-if="hasBackButton"
|
||||||
:backButtonAccessibleText="backButtonAccessibleText"
|
|
||||||
:backButtonAction="backButtonAction"
|
:backButtonAction="backButtonAction"
|
||||||
:backButtonUrl="backButtonUrl"
|
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue