forked from eatvio/eatvio_app
chore(version): update app version to 1.3.5+85 and improve test coverage reporting in CI
This commit is contained in:
@@ -2,45 +2,56 @@ import 'package:eatvio_app/core/const.dart';
|
||||
import 'package:flutter_test/flutter_test.dart';
|
||||
|
||||
void main() {
|
||||
group('Const', () {
|
||||
test('durationValues содержит правильные значения', () {
|
||||
group('Global constants', () {
|
||||
test('hidePlans is defined', () {
|
||||
expect(hidePlans, isA<bool>());
|
||||
});
|
||||
|
||||
test('buildDate is defined', () {
|
||||
expect(buildDate, isA<String>());
|
||||
});
|
||||
|
||||
test('durationValues contains correct values', () {
|
||||
expect(durationValues, [7, 14, 21]);
|
||||
expect(durationValues.length, 3);
|
||||
});
|
||||
|
||||
test('dietTypeValues содержит правильные значения', () {
|
||||
test('dietTypeValues contains correct values', () {
|
||||
expect(dietTypeValues, ['veg', 'light', 'carb', 'meat']);
|
||||
expect(dietTypeValues.length, 4);
|
||||
});
|
||||
|
||||
test('planTypeValues содержит правильные значения', () {
|
||||
test('planTypeValues contains correct values', () {
|
||||
expect(planTypeValues, ['fit', 'slim', 'wellness', 'behavior']);
|
||||
expect(planTypeValues.length, 4);
|
||||
});
|
||||
|
||||
test('newMessagesChannelName имеет правильное значение', () {
|
||||
test('newMessagesChannelName is defined', () {
|
||||
expect(newMessagesChannelName, 'private-new-chat-messages');
|
||||
});
|
||||
|
||||
test('newNotificationsChannelName имеет правильное значение', () {
|
||||
test('newNotificationsChannelName is defined', () {
|
||||
expect(newNotificationsChannelName, 'private-message-events');
|
||||
});
|
||||
|
||||
test('directChatChannelName имеет правильное значение', () {
|
||||
test('directChatChannelName is defined', () {
|
||||
expect(directChatChannelName, 'private-direct-chat');
|
||||
});
|
||||
|
||||
test('thresholdForPagination имеет правильное значение', () {
|
||||
test('thresholdForPagination is defined', () {
|
||||
expect(thresholdForPagination, 150);
|
||||
});
|
||||
|
||||
test('buildDate является строкой', () {
|
||||
expect(buildDate, isA<String>());
|
||||
test('durationValues are immutable', () {
|
||||
expect(() => durationValues.add(30), throwsUnsupportedError);
|
||||
});
|
||||
|
||||
test('hidePlans является булевым значением', () {
|
||||
expect(hidePlans, isA<bool>());
|
||||
test('dietTypeValues are immutable', () {
|
||||
expect(() => dietTypeValues.add('test'), throwsUnsupportedError);
|
||||
});
|
||||
|
||||
test('planTypeValues are immutable', () {
|
||||
expect(() => planTypeValues.add('test'), throwsUnsupportedError);
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user