Skip to content

Commit 358a9e0

Browse files
gnpricechrisbobbe
authored andcommitted
test [nfc]: Add package:checks getters for ApiConnection
1 parent 792bd90 commit 358a9e0

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

test/api/core_checks.dart

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import 'package:checks/checks.dart';
2+
import 'package:zulip/api/core.dart';
3+
4+
extension ApiConnectionChecks on Subject<ApiConnection> {
5+
Subject<Uri> get realmUrl => has((x) => x.realmUrl, 'realmUrl');
6+
Subject<int?> get zulipFeatureLevel => has((x) => x.zulipFeatureLevel, 'zulipFeatureLevel');
7+
}

0 commit comments

Comments
 (0)