Skip to content

Instantly share code, notes, and snippets.

View rodrigolmacedo's full-sized avatar
😆
Let's code.

Rodrigo rodrigolmacedo

😆
Let's code.
  • Recife, Brasil
  • 09:05 (UTC -03:00)
View GitHub Profile
@rodrigolmacedo
rodrigolmacedo / dio_test.dart
Created October 8, 2020 18:24 — forked from hjJunior/dio_test.dart
An example how to use mockito and Dio to tests your calls to API
class DioAdapterMock extends Mock implements HttpClientAdapter {}
const dioHttpHeadersForResponseBody = {
Headers.contentTypeHeader: [Headers.jsonContentType],
};
void main() {
group('UserRemoteDataSource', () {
final Dio dio = Dio();