Skip to content

Unit test of VcPlugin issue #260

Closed Answered by unbreakabl3
unbreakabl3 asked this question in Q&A
Discussion options

You must be logged in to vote

Sure. My bad :)
So, the solution is to add the following into the describe section

beforeEach ( () => {
  (<any> VcPlugin) = {
    getAllVirtualMachines: function () {}
  }
} );

But I am still trying to understand how / why exactly it's doing the job.
@Michaelpalacce , maybe you know? Because I don't see this problem with other classes for example. This was a first time. What is especial in VcPlugin ?

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@Michaelpalacce
Comment options

@unbreakabl3
Comment options

Answer selected by Michaelpalacce
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants