Skip to content

Commit

Permalink
test latest firebase
Browse files Browse the repository at this point in the history
  • Loading branch information
alextekartik committed Dec 13, 2024
1 parent 0fa85e1 commit 6e6fe29
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions firebase_rest/test/firebase_rest_io_test.dart
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
@TestOn('vm')
library;

import 'package:tekartik_firebase/firebase_mixin.dart';
import 'package:tekartik_firebase_rest/firebase_rest.dart';
import 'package:tekartik_firebase_rest/src/test/test_setup.dart'
show firebaseRestSetup;
Expand Down Expand Up @@ -30,6 +31,14 @@ Future main() async {
}
});

test('initialize sync and latest', () {
FirebaseMixin.latestFirebaseInstanceOrNull = null;
var firebase = firebaseRest;
var app =
firebase.initializeApp(options: AppOptions(projectId: 'test'));
expect(FirebaseMixin.latestFirebaseInstanceOrNull, app);
});

test('admin', () async {
if (firebaseRest is FirebaseAdminRest) {
expect(
Expand Down

0 comments on commit 6e6fe29

Please sign in to comment.