I have a class called call.js which has a toggleAudio function. I am trying to mock this function so I can use it in my tests. The code is as follows:
My test: