Skip to content

Commit c95bf39

Browse files
Update test/data/network/model/network_launch_full_model_test.dart
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
1 parent b0e8969 commit c95bf39

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

test/data/network/model/network_launch_full_model_test.dart

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,8 @@ void main() {
176176
final json = model.toJson();
177177
expect(json['mission_name'], 'Demo');
178178
expect(json['launch_success'], true);
179-
expect((json['links'] as NetworkLaunchLinksModel).flickrImages, [
179+
final linksJson = json['links'] as Map<String, dynamic>;
180+
expect(linksJson['flickr_images'], [
180181
'https://farm9.staticflickr.com/8619/16511407538_9a25c5d8c6_o.jpg',
181182
'https://farm9.staticflickr.com/8665/16697946612_1284e952b0_o.jpg',
182183
'https://farm9.staticflickr.com/8570/16698990475_16524a93de_o.jpg',
@@ -188,7 +189,8 @@ void main() {
188189
'https://farm9.staticflickr.com/8654/16511594820_451f194d53_o.jpg',
189190
'https://farm9.staticflickr.com/8603/16673054016_472fb42a20_o.jpg'
190191
]);
191-
expect((json['rocket'] as NetworkRocketModel).name, 'Falcon 1');
192+
final rocketJson = json['rocket'] as Map<String, dynamic>;
193+
expect(rocketJson['rocket_name'], 'Falcon 1');
192194
});
193195
});
194196
}

0 commit comments

Comments
 (0)