Rahul Dole
Rahul Dole

Reputation: 3093

How to mock the flutter universal html package

I am using this library to use the html.window.open() method in my code, but I'm not able to mock it for my tests. I have imported the lib like this import "package:universal_html/html.dart" as html; in the code. My test tries to verify (using mockito) whether this method was called and also verify what argument was used. Please help! Thanks :)

Upvotes: 5

Views: 291

Answers (0)

Related Questions