fix:对齐金值的报名验证,商城入口逻辑对齐

This commit is contained in:
jingyun committed 2026-09-08 10:56:33 +08:00
1 parent 3b089e2205
commit 7b1852d9a6
20 files changed
+682 -116

No files matched your search

@@ -0,0 +1,19 @@
import 'package:flutter_test/flutter_test.dart';
import 'package:jinzhi_flutter_app/features/mall/application/mall_entry_promo_store.dart';
import 'package:shared_preferences/shared_preferences.dart';
void main() {
test('records each first-install mall promotion exposure once', () async {
SharedPreferences.setMockInitialValues(<String, Object>{});
final store = MallEntryPromoStore(await SharedPreferences.getInstance());
expect(store.hasOpenedMall, isFalse);
expect(store.hasSeenHomeBadge, isFalse);
await store.markMallOpened();
await store.markHomeBadgeSeen();
expect(store.hasOpenedMall, isTrue);
expect(store.hasSeenHomeBadge, isTrue);
});
}