feat(dependencies): add rxdart package and improve string extension methods for better handling of empty strings and gender parsing

This commit is contained in:
mso7nueh
2025-12-04 15:45:54 +03:00
parent 0cd8e662d9
commit 953230b387
100 changed files with 7202 additions and 14 deletions

46
test/core/const_test.dart Normal file
View 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>());
});
});
}