diff --git a/lib/src/itunes_search_api.dart b/lib/src/itunes_search_api.dart index 48881d37..f7893a7d 100644 --- a/lib/src/itunes_search_api.dart +++ b/lib/src/itunes_search_api.dart @@ -140,6 +140,7 @@ class ITunesSearchAPI { print( 'upgrader.ITunesSearchAPI: results are empty: $decodedResults'); } + return null; } return decodedResults; } diff --git a/test/itunes_test.dart b/test/itunes_test.dart index 625b966e..a010a0a2 100644 --- a/test/itunes_test.dart +++ b/test/itunes_test.dart @@ -65,10 +65,7 @@ void main() { final response = await iTunes.lookupByBundleId('com.google.MyApp', useCacheBuster: false); - expect(response, isInstanceOf()); - final results = response!['results']; - expect(results, isNotNull); - expect(results.length, 0); + expect(response, isNull); }, skip: false); test('testing lookupById', () async {