Refactor: Implement multi-item inventory for Pad Tracker and dynamic navigation
This commit is contained in:
@@ -6,7 +6,7 @@ import 'package:christian_period_tracker/models/cycle_entry.dart';
|
||||
void main() {
|
||||
group('CycleService Tests', () {
|
||||
test('calculateCycleInfo returns follicular phase for null profile', () {
|
||||
final info = CycleService.calculateCycleInfo(null);
|
||||
final info = CycleService.calculateCycleInfo(null, []);
|
||||
expect(info.phase, CyclePhase.follicular);
|
||||
expect(info.dayOfCycle, 1);
|
||||
});
|
||||
@@ -25,7 +25,7 @@ void main() {
|
||||
updatedAt: now,
|
||||
);
|
||||
|
||||
final info = CycleService.calculateCycleInfo(user);
|
||||
final info = CycleService.calculateCycleInfo(user, []);
|
||||
expect(info.dayOfCycle, 7);
|
||||
expect(info.phase, CyclePhase.follicular);
|
||||
});
|
||||
@@ -44,7 +44,7 @@ void main() {
|
||||
updatedAt: now,
|
||||
);
|
||||
|
||||
final info = CycleService.calculateCycleInfo(user);
|
||||
final info = CycleService.calculateCycleInfo(user, []);
|
||||
expect(info.dayOfCycle, 2);
|
||||
expect(info.phase, CyclePhase.menstrual);
|
||||
});
|
||||
@@ -64,7 +64,7 @@ void main() {
|
||||
updatedAt: now,
|
||||
);
|
||||
|
||||
final info = CycleService.calculateCycleInfo(user);
|
||||
final info = CycleService.calculateCycleInfo(user, []);
|
||||
expect(info.dayOfCycle, 3);
|
||||
expect(info.phase, CyclePhase.menstrual);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user