Update unit test.

This commit is contained in:
bmauger 2022-02-04 13:58:27 -05:00
parent 44c15969c2
commit 174b421413

View file

@ -65,22 +65,6 @@ describe("funnel-footer.vue", () => {
});
it("Should return class justify-content-end if paddingHeight < 80px", async () => {
// Act
const wrapper = mount(funnelFooter, {
propsData: {
footer: true
},
});
// Assert
const stacked = wrapper.find("#stacked");
wrapper.vm.paddingHeight = 47;
// Expect
expect(stacked.attributes('class')).toContain("justify-content-end");
});
it("Should return class justify-content-start if paddingHeight > 80px", async () => {
global.document.getElementById = jest.fn().mockImplementation(()=> {
return {
@ -99,9 +83,7 @@ describe("funnel-footer.vue", () => {
footer: true
},
});
console.log(wrapper.html());
const infoBox = document.getElementById('infoBox');
console.log(document);
// Assert
const stacked = wrapper.find("#stacked");
wrapper.vm.paddingHeight = 100;