Skip to content

Commit

Permalink
test(models/movies): posterPath is valid
Browse files Browse the repository at this point in the history
  • Loading branch information
bwnyasse committed May 21, 2020
1 parent ab5a7a5 commit b0d943b
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion test/src/models/movies_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,14 @@ import 'package:flutter_test/flutter_test.dart';
main() {
group('movie.posterPathResolved', () {
test('posterPath is null', () {
//TODO 1- Test the case movie.posterPathResolved is null
Movie m = Movie();
expect(m.posterPathResolved, equals('https://via.placeholder.com/300'));
});

test('posterPath is valid', () {
Movie m = Movie(posterPath: 'some-value');
expect(m.posterPathResolved,
equals('http://image.tmdb.org/t/p/w185/some-value'));
});
});
}

0 comments on commit b0d943b

Please sign in to comment.