diff --git a/src/ux-components/list-button-horizontal/list-button-horizontal.spec.js b/src/ux-components/list-button-horizontal/list-button-horizontal.spec.js index 3976b9857..ba1f12d23 100644 --- a/src/ux-components/list-button-horizontal/list-button-horizontal.spec.js +++ b/src/ux-components/list-button-horizontal/list-button-horizontal.spec.js @@ -99,6 +99,7 @@ describe("list-button-horizontal.vue", () => { const label = wrapper.find("label"); + wrapper.vm.handleCheckChange = jest.fn(); wrapper.vm.handleClick(); await nextTick(); @@ -121,6 +122,7 @@ describe("list-button-horizontal.vue", () => { const label = wrapper.find("label"); + wrapper.vm.handleCheckChange = jest.fn(); wrapper.vm.handleClick(); await nextTick(); @@ -143,6 +145,7 @@ describe("list-button-horizontal.vue", () => { const label = wrapper.find("label"); + wrapper.vm.handleCheckChange = jest.fn(); wrapper.vm.handleClick(); await nextTick(); @@ -165,6 +168,7 @@ describe("list-button-horizontal.vue", () => { const label = wrapper.find("label"); + wrapper.vm.handleCheckChange = jest.fn(); wrapper.vm.handleClick(); await nextTick(); diff --git a/src/ux-components/list-button/list-button.spec.js b/src/ux-components/list-button/list-button.spec.js index a07d2d9e0..d643201ef 100644 --- a/src/ux-components/list-button/list-button.spec.js +++ b/src/ux-components/list-button/list-button.spec.js @@ -99,6 +99,7 @@ describe("list-button.vue", () => { const label = wrapper.find("label"); + wrapper.vm.handleCheckChange = jest.fn(); wrapper.vm.handleClick(); await nextTick(); @@ -120,9 +121,8 @@ describe("list-button.vue", () => { // Assert const label = wrapper.find("label"); - + wrapper.vm.handleCheckChange = jest.fn(); wrapper.vm.handleClick(); - await nextTick(); const loader = wrapper.find("loader-stub"); @@ -143,6 +143,7 @@ describe("list-button.vue", () => { const label = wrapper.find("label"); + wrapper.vm.handleCheckChange = jest.fn(); wrapper.vm.handleClick(); await nextTick(); @@ -165,6 +166,7 @@ describe("list-button.vue", () => { const label = wrapper.find("label"); + wrapper.vm.handleCheckChange = jest.fn(); wrapper.vm.handleClick(); await nextTick();