forked from eatvio/eatvio_app
feat(dependencies): add rxdart package and improve string extension methods for better handling of empty strings and gender parsing
This commit is contained in:
46
test/core/const_test.dart
Normal file
46
test/core/const_test.dart
Normal file
@@ -0,0 +1,46 @@
|
||||
import 'package:eatvio_app/core/const.dart';
|
||||
import 'package:flutter_test/flutter_test.dart';
|
||||
|
||||
void main() {
|
||||
group('Const', () {
|
||||
test('durationValues содержит правильные значения', () {
|
||||
expect(durationValues, [7, 14, 21]);
|
||||
expect(durationValues.length, 3);
|
||||
});
|
||||
|
||||
test('dietTypeValues содержит правильные значения', () {
|
||||
expect(dietTypeValues, ['veg', 'light', 'carb', 'meat']);
|
||||
expect(dietTypeValues.length, 4);
|
||||
});
|
||||
|
||||
test('planTypeValues содержит правильные значения', () {
|
||||
expect(planTypeValues, ['fit', 'slim', 'wellness', 'behavior']);
|
||||
expect(planTypeValues.length, 4);
|
||||
});
|
||||
|
||||
test('newMessagesChannelName имеет правильное значение', () {
|
||||
expect(newMessagesChannelName, 'private-new-chat-messages');
|
||||
});
|
||||
|
||||
test('newNotificationsChannelName имеет правильное значение', () {
|
||||
expect(newNotificationsChannelName, 'private-message-events');
|
||||
});
|
||||
|
||||
test('directChatChannelName имеет правильное значение', () {
|
||||
expect(directChatChannelName, 'private-direct-chat');
|
||||
});
|
||||
|
||||
test('thresholdForPagination имеет правильное значение', () {
|
||||
expect(thresholdForPagination, 150);
|
||||
});
|
||||
|
||||
test('buildDate является строкой', () {
|
||||
expect(buildDate, isA<String>());
|
||||
});
|
||||
|
||||
test('hidePlans является булевым значением', () {
|
||||
expect(hidePlans, isA<bool>());
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user