Update unit test.
This commit is contained in:
parent
44c15969c2
commit
174b421413
1 changed files with 0 additions and 18 deletions
|
|
@ -65,22 +65,6 @@ describe("funnel-footer.vue", () => {
|
||||||
});
|
});
|
||||||
|
|
||||||
it("Should return class justify-content-end if paddingHeight < 80px", async () => {
|
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(()=> {
|
global.document.getElementById = jest.fn().mockImplementation(()=> {
|
||||||
return {
|
return {
|
||||||
|
|
@ -99,9 +83,7 @@ describe("funnel-footer.vue", () => {
|
||||||
footer: true
|
footer: true
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
console.log(wrapper.html());
|
|
||||||
const infoBox = document.getElementById('infoBox');
|
const infoBox = document.getElementById('infoBox');
|
||||||
console.log(document);
|
|
||||||
// Assert
|
// Assert
|
||||||
const stacked = wrapper.find("#stacked");
|
const stacked = wrapper.find("#stacked");
|
||||||
wrapper.vm.paddingHeight = 100;
|
wrapper.vm.paddingHeight = 100;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue