forked from eatvio/eatvio_app
fix(profile): Issue-523
This commit is contained in:
@@ -30,6 +30,7 @@ void main() {
|
||||
badges: [],
|
||||
subscriptions: [],
|
||||
subscribers: [],
|
||||
isBlockedByAuthor: false,
|
||||
),
|
||||
),
|
||||
);
|
||||
@@ -72,23 +73,17 @@ void main() {
|
||||
});
|
||||
|
||||
test('getBlogPostByAuthorSlug', () async {
|
||||
when(mockProfileService.getBlogPostByAuthorSlug(slug: '')).thenAnswer(
|
||||
(_) async => [],
|
||||
);
|
||||
when(mockProfileService.getBlogPostByAuthorSlug(slug: '')).thenAnswer((_) async => []);
|
||||
expect(await mockProfileService.getBlogPostByAuthorSlug(slug: 'slug'), isA<List<FeedBlogPostModel>>());
|
||||
});
|
||||
|
||||
test('getWeight', () async {
|
||||
when(mockProfileService.getWeight(period: '')).thenAnswer(
|
||||
(_) async => [],
|
||||
);
|
||||
when(mockProfileService.getWeight(period: '')).thenAnswer((_) async => []);
|
||||
expect(await mockProfileService.getWeight(period: ''), isA<List<WeightModel>>());
|
||||
});
|
||||
|
||||
test('getCircumferences', () async {
|
||||
when(mockProfileService.getCircumferences(period: '')).thenAnswer(
|
||||
(_) async => [],
|
||||
);
|
||||
when(mockProfileService.getCircumferences(period: '')).thenAnswer((_) async => []);
|
||||
expect(await mockProfileService.getCircumferences(period: ''), isA<List<CircumferenceModel>>());
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user