diff --git a/ui/tests/unit/components/view/ActionButton.spec.js b/ui/tests/unit/components/view/ActionButton.spec.js index 4677a47cd14..29ade026c4f 100644 --- a/ui/tests/unit/components/view/ActionButton.spec.js +++ b/ui/tests/unit/components/view/ActionButton.spec.js @@ -272,7 +272,7 @@ describe('Components > View > ActionButton.vue', () => { } } }) - wrapper.vm.hasOwnProperty = () => Object.hasOwnProperty; + wrapper.vm.hasOwnProperty = () => Object.hasOwnProperty const handleShowBadge = jest.spyOn(wrapper.vm, 'handleShowBadge') await wrapper.setProps({ resource: null }) @@ -287,7 +287,7 @@ describe('Components > View > ActionButton.vue', () => { } } }) - wrapper.vm.hasOwnProperty = () => Object.hasOwnProperty; + wrapper.vm.hasOwnProperty = () => Object.hasOwnProperty const handleShowBadge = jest.spyOn(wrapper.vm, 'handleShowBadge') await wrapper.setProps({ resource: { id: null } }) @@ -302,7 +302,7 @@ describe('Components > View > ActionButton.vue', () => { } } }) - wrapper.vm.hasOwnProperty = () => Object.hasOwnProperty; + wrapper.vm.hasOwnProperty = () => Object.hasOwnProperty const handleShowBadge = jest.spyOn(wrapper.vm, 'handleShowBadge') await wrapper.setProps({ resource: {