Skip to content

Commit b0d943b

Browse files
committed
test(models/movies): posterPath is valid
1 parent ab5a7a5 commit b0d943b

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

test/src/models/movies_test.dart

+8-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,14 @@ import 'package:flutter_test/flutter_test.dart';
44
main() {
55
group('movie.posterPathResolved', () {
66
test('posterPath is null', () {
7-
//TODO 1- Test the case movie.posterPathResolved is null
7+
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'));
815
});
916
});
1017
}

0 commit comments

Comments
 (0)