How to mock window object that contains third party object

101 Views Asked by At

I am using appstream embedded JavaScript file in my controller and getting appstream object from $window. But while mocking $window i don't have object for appstream bceause it is thirdparty content when iframe loaded.How can i write unit tests ?

In my controller i am accessing appstream object

var appstreamEmbed;
var _appStream = $window.AppStream;
0

There are 0 best solutions below