Skip to content

Commit

Permalink
test: Add package:checks getters for PerAccountStoreWidget
Browse files Browse the repository at this point in the history
  • Loading branch information
gnprice committed Nov 2, 2023
1 parent e2476a3 commit bc6be67
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions test/widgets/store_checks.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import 'package:checks/checks.dart';
import 'package:flutter/widgets.dart';
import 'package:zulip/widgets/store.dart';

extension PerAccountStoreWidgetChecks on Subject<PerAccountStoreWidget> {
Subject<int> get accountId => has((x) => x.accountId, 'accountId');
Subject<Widget> get child => has((x) => x.child, 'child');
}

0 comments on commit bc6be67

Please sign in to comment.