Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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

Lines changed: 8 additions & 1 deletion
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)

AltStyle によって変換されたページ (->オリジナル) /