File tree Expand file tree Collapse file tree 3 files changed +20
-5
lines changed
pkgs/googleapis_firestore_v1 Expand file tree Collapse file tree 3 files changed +20
-5
lines changed Original file line number Diff line number Diff line change 35
35
sdk : ${{ matrix.sdk }}
36
36
37
37
- run : dart pub get
38
-
39
38
- run : dart analyze --fatal-infos
40
-
41
39
# TODO(devoncarew): We should update protoc_plugin to generate formatted
42
40
# files.
43
41
# - run: dart format --output=none --set-exit-if-changed .
44
42
# if: ${{ matrix.sdk == 'stable' }}
45
-
46
- # Enable once we have tests.
47
- # - run: dart test
43
+ - run : dart test
Original file line number Diff line number Diff line change @@ -17,3 +17,4 @@ dev_dependencies:
17
17
path : ^1.9.0
18
18
# We use a pinned version to make the gRPC library generation hermetic.
19
19
protoc_plugin : 22.3.0
20
+ test : ^1.26.0
Original file line number Diff line number Diff line change
1
+ // Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file
2
+ // for details. All rights reserved. Use of this source code is governed by a
3
+ // BSD-style license that can be found in the LICENSE file.
4
+
5
+ import 'package:googleapis_firestore_v1/google/firestore/v1/firestore.pbgrpc.dart' ;
6
+ import 'package:test/test.dart' ;
7
+
8
+ void main () {
9
+ group ('FirestoreClient' , () {
10
+ test ('has defaultHost' , () {
11
+ expect (FirestoreClient .defaultHost, isNotEmpty);
12
+ });
13
+
14
+ test ('has oauthScopes' , () {
15
+ expect (FirestoreClient .oauthScopes, isNotEmpty);
16
+ });
17
+ });
18
+ }
You can’t perform that action at this time.
0 commit comments