fix: alot

This commit is contained in:
2026-10-19 21:41:34 +02:00
parent 30dd74af90
commit b0074aeb3f
40 changed files with 1979 additions and 405 deletions
+6 -3
View File
@@ -171,7 +171,7 @@ void main() {
});
group('deleteProduct', () {
test('removes product from database', () async {
test('hides the product but keeps its row', () async {
await database
.into(database.products)
.insert(
@@ -187,8 +187,11 @@ void main() {
await service.deleteProduct('delete-test');
final products = await database.select(database.products).get();
expect(products, isEmpty);
expect(await service.getProducts(), isEmpty);
final row = await service.getProductById('delete-test');
expect(row!.active, isFalse);
await service.increaseStock('delete-test', 1);
});
});