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

   Other failures fixed, just one remaining @weizhouapache 
   ```
   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)
   
     ● Components > View > ActionButton.vue › Watcher › handleShowBadge() › The 
handleShowBadge() is not called with a resource have containing id null
   
       TypeError: object.hasOwnProperty is not a function
   
         287 |           }
         288 |         })
       > 289 |         const handleShowBadge = jest.spyOn(wrapper.vm, 
'handleShowBadge')
             |                                      ^
         290 |         await wrapper.setProps({ resource: { id: null } })
         291 |
         292 |         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:289:38)
   
     ● Components > View > ActionButton.vue › Watcher › handleShowBadge() › The 
handleShowBadge() should be called with changed resource data
   
       TypeError: object.hasOwnProperty is not a function
   
         301 |           }
         302 |         })
       > 303 |         const handleShowBadge = jest.spyOn(wrapper.vm, 
'handleShowBadge')
             |                                      ^
         304 |         await wrapper.setProps({
         305 |           resource: {
         306 |             id: 'test-resource-id-2'
   
         at ModuleMockerClass.spyOn 
(node_modules/jest-mock/build/index.js:850:36)
         at Object.<anonymous> 
(tests/unit/components/view/ActionButton.spec.js:303:38)
   
   
   =============================== Coverage summary 
===============================
   Statements   : 5.7% ( 1373/24101 )
   Branches     : 4.83% ( 646/13375 )
   Functions    : 2.59% ( 189/7304 )
   Lines        : 5.79% ( 1354/23392 )
   
================================================================================
   Test Suites: 1 failed, 3 passed, 4 total
   Tests:       3 failed, 172 passed, 175 total
   Snapshots:   0 total
   Time:        104.483s
   ```


-- 
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