diff --git a/test/helpers/generate_tvshow.dart b/test/helpers/generate_tvshow.dart index 3db50d21..c7271eec 100644 --- a/test/helpers/generate_tvshow.dart +++ b/test/helpers/generate_tvshow.dart @@ -14,7 +14,7 @@ class GenerateTvshow { inProduction: _faker.randomGenerator.boolean() ? 1 : 0, name: _faker.lorem.sentence(), numberOfEpisodes: _faker.randomGenerator.integer(999), - numberOfSeasons: _faker.randomGenerator.integer(50), + numberOfSeasons: _faker.randomGenerator.integer(50, min: 1), overview: _faker.lorem.sentence(), posterPath: _faker.internet.httpsUrl(), rowId: @@ -25,14 +25,14 @@ class GenerateTvshow { episodeNumber: _faker.randomGenerator.integer(50), name: _faker.lorem.sentence(), id: _faker.randomGenerator.integer(50), - seasonNumber: _faker.randomGenerator.integer(50), + seasonNumber: _faker.randomGenerator.integer(50, min: 1), ); List get tvshows => random.amount((i) => tvshowDetails, 50); TvshowSeasonsDetails get tvshowSeasonsDetails => TvshowSeasonsDetails( - seasonNumber: _faker.randomGenerator.integer(99), + seasonNumber: _faker.randomGenerator.integer(99, min: 1), episodes: random.amount((i) => episode, 50), id: _faker.randomGenerator.integer(9999), name: _faker.lorem.sentence(),