Skip to content

Commit 227be22

Browse files
committed
Update FirebaseApp creation in tests
1 parent d6c93b0 commit 227be22

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

packages/cloud_firestore/test/cloud_firestore_test.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ void main() {
175175
});
176176

177177
test('settings', () async {
178-
final FirebaseApp app = const FirebaseApp(name: "testApp2");
178+
final FirebaseApp app = FirebaseApp(name: "testApp2");
179179
final Firestore firestoreWithSettings = Firestore(app: app);
180180
await firestoreWithSettings.settings(
181181
persistenceEnabled: true,

packages/cloud_functions/test/cloud_functions_test.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ void main() {
3434
.getHttpsCallable(functionName: 'baz')
3535
.call();
3636
final HttpsCallable callable =
37-
CloudFunctions(app: const FirebaseApp(name: '1337'), region: 'space')
37+
CloudFunctions(app: FirebaseApp(name: '1337'), region: 'space')
3838
.getHttpsCallable(functionName: 'qux')
3939
..timeout = const Duration(days: 300);
4040
await callable.call(<String, dynamic>{

packages/firebase_database/test/firebase_database_test.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ void main() {
1919

2020
int mockHandleId = 0;
2121
final List<MethodCall> log = <MethodCall>[];
22-
final FirebaseApp app = const FirebaseApp(
22+
final FirebaseApp app = FirebaseApp(
2323
name: 'testApp',
2424
);
2525
final String databaseURL = 'https://fake-database-url2.firebaseio.com';

packages/firebase_storage/test/firebase_storage_test.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ void main() {
1414
TestWidgetsFlutterBinding.ensureInitialized();
1515

1616
group('FirebaseStorage', () {
17-
final FirebaseApp app = const FirebaseApp(
17+
final FirebaseApp app = FirebaseApp(
1818
name: 'testApp',
1919
);
2020
final String storageBucket = 'gs://fake-storage-bucket-url.com';

0 commit comments

Comments
 (0)