fixed some issues and added label and, or capability
This commit is contained in:
@@ -19,12 +19,19 @@ void main() {
|
||||
expect(restored.flow, TxFlowFilter.expense);
|
||||
expect(restored.monthOnly, isTrue);
|
||||
expect(restored.labelIds, ['groceries']);
|
||||
expect(restored.labelMatch, LabelMatchMode.and);
|
||||
expect(restored.showAmountOut, isTrue);
|
||||
expect(restored.showAmountIn, isFalse);
|
||||
expect(restored.showCount, isTrue);
|
||||
expect(restored.halfWidth, isFalse);
|
||||
expect(restored.type, HomeWidgetType.stats);
|
||||
|
||||
final withOr = widget.copyWith(labelMatch: LabelMatchMode.or);
|
||||
expect(
|
||||
HomeFilterWidget.fromJson(withOr.toJson()).labelMatch,
|
||||
LabelMatchMode.or,
|
||||
);
|
||||
|
||||
final budget = widget.copyWith(
|
||||
halfWidth: true,
|
||||
type: HomeWidgetType.budget,
|
||||
|
||||
Reference in New Issue
Block a user