We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ab5a7a5 commit b0d943bCopy full SHA for b0d943b
test/src/models/movies_test.dart
@@ -4,7 +4,14 @@ import 'package:flutter_test/flutter_test.dart';
4
main() {
5
group('movie.posterPathResolved', () {
6
test('posterPath is null', () {
7
- //TODO 1- Test the case movie.posterPathResolved is null
+ Movie m = Movie();
8
+ expect(m.posterPathResolved, equals('https://via.placeholder.com/300'));
9
+ });
10
+
11
+ test('posterPath is valid', () {
12
+ Movie m = Movie(posterPath: 'some-value');
13
+ expect(m.posterPathResolved,
14
+ equals('http://image.tmdb.org/t/p/w185/some-value'));
15
});
16
17
}
0 commit comments