Issue I’ve been trying to get my head around the mocking library in dart, but it seems I’ve still not got it. In my library, I have an HTTP request to an external resource, which I would like to mock
Continue readingTag: dart-mock
Mocking HTTP response with Dart
Issue I have been working on a new API wrapper and don’t want to be calling the API every time my unit tests run. So as described here, I’m mocking it. I initially thought there was something wrong with the
Continue readingHow can make a matcher for a string containing a substring, while ignoring case
Issue I’m writing a unit test using mockito to mock a dependency and check we’re calling it with the right argument. We should be passing in a string, so I’m trying to match on that function argument, but without asserting
Continue readingHow to return this crazy type in Dart?
Issue I am trying to mock the .find function in mongo_dart and it is asking for a return function that I just can’t work out. It has a type, then another type, then the name. What / how do I
Continue reading