feat: add alot
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
import 'package:flutter_test/flutter_test.dart';
|
||||
import 'package:kooltab2/models/bar_tab.dart';
|
||||
import 'package:kooltab2/models/closed_tab.dart';
|
||||
import 'package:kooltab2/models/payment_method.dart';
|
||||
import 'package:kooltab2/services/bar_tab_service.dart';
|
||||
import 'package:kooltab2/viewmodels/history_view_model.dart';
|
||||
import 'package:kooltap/models/bar_tab.dart';
|
||||
import 'package:kooltap/models/closed_tab.dart';
|
||||
import 'package:kooltap/models/payment_method.dart';
|
||||
import 'package:kooltap/services/bar_tab_service.dart';
|
||||
import 'package:kooltap/viewmodels/history_view_model.dart';
|
||||
import 'package:mocktail/mocktail.dart';
|
||||
|
||||
class MockBarTabService extends Mock implements BarTabService {}
|
||||
@@ -90,19 +90,12 @@ ClosedTab _closedTab(String id, DateTime closedAt) {
|
||||
}
|
||||
|
||||
BarTab _barTab(String id, DateTime openedAt) {
|
||||
return BarTab(
|
||||
id: id,
|
||||
customerName: id,
|
||||
status: 'open',
|
||||
openedAt: openedAt,
|
||||
items: const [],
|
||||
);
|
||||
return BarTab(id: id, customerName: id, openedAt: openedAt, items: const []);
|
||||
}
|
||||
|
||||
final _openTab = BarTab(
|
||||
id: 'tab-1',
|
||||
customerName: 'Alice',
|
||||
status: 'open',
|
||||
openedAt: DateTime(2026, 8, 2, 12),
|
||||
items: const [],
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user