Skip to content

Commit

Permalink
Updated map mock for failed test
Browse files Browse the repository at this point in the history
  • Loading branch information
tusharmathur-wk committed May 22, 2024
1 parent 743ed6c commit bc8085b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/over_react/shared/map_proxy_tests.dart
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ void mapProxyTests(Map Function(Map proxiedMap) mapProxyFactory) {

test('map', () {
callback(key, value) => MapEntry('key', 'value');
when(() => backingMap.map(any())).thenReturn(<String, String>{});
when(() => backingMap.map<String, String>(any())).thenReturn(<String, String>{});

proxy.map(callback);
verify(() => backingMap.map(callback));
Expand Down Expand Up @@ -176,4 +176,4 @@ void mapProxyTests(Map Function(Map proxiedMap) mapProxyFactory) {
});
}

class MockMap extends Mock implements Map<dynamic, dynamic> {}
class MockMap extends Mock implements Map {}

0 comments on commit bc8085b

Please sign in to comment.