weizhouapache commented on PR #7030:
URL: https://github.com/apache/cloudstack/pull/7030#issuecomment-1366652732

   ubuntu 20.04 is tool old. The following succeeds on ubuntu 22.04.
   
   ```
   FAIL tests/unit/components/view/ActionButton.spec.js
     ● Components > View > ActionButton.vue › Watcher › handleShowBadge() › The 
handleShowBadge() is not called with an empty resource
       TypeError: object.hasOwnProperty is not a function
         273 |           }
         274 |         })
       > 275 |         const handleShowBadge = jest.spyOn(wrapper.vm, 
'handleShowBadge')
             |                                      ^
         276 |         await wrapper.setProps({ resource: null })
         277 |
         278 |         expect(handleShowBadge).not.toBeCalled()
         at ModuleMockerClass.spyOn 
(node_modules/jest-mock/build/index.js:850:36)
         at Object.<anonymous> 
(tests/unit/components/view/ActionButton.spec.js:275:38)
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to