Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
analyzer
  • Loading branch information
cynthiajoan committed Feb 23, 2026
commit d39d210ac8da8b03b87e88b9ecd9b7362ccbec03
13 changes: 9 additions & 4 deletions tests/integration_test/firebase_ai/firebase_ai_e2e_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ void main() {
test('test against all json responses from vertexai-sdk-test-data',
() async {
final treeUrl = Uri.parse(
'https://api.github.com/repos/FirebaseExtended/vertexai-sdk-test-data/git/trees/main?recursive=1');
'https://api.github.com/repos/FirebaseExtended/vertexai-sdk-test-data/git/trees/main?recursive=1',
);
final treeResponse = await http.get(treeUrl);
if (treeResponse.statusCode != 200) {
fail('Failed to fetch tree: ${treeResponse.statusCode}');
Expand All @@ -51,7 +52,8 @@ void main() {
for (final file in jsonFiles) {
final path = file['path'] as String;
final rawUrl = Uri.parse(
'https://raw.githubusercontent.com/FirebaseExtended/vertexai-sdk-test-data/main/$path');
'https://raw.githubusercontent.com/FirebaseExtended/vertexai-sdk-test-data/main/$path',
);
final response = await http.get(rawUrl);
if (response.statusCode != 200) {
continue;
Expand Down Expand Up @@ -88,8 +90,11 @@ void main() {
} catch (e) {
if (path.contains('failure') && !path.contains('success')) {
// Expected to fail
expect(e, isA<Exception>(),
reason: 'Expected an Exception but got $e for $path');
expect(
e,
isA<Exception>(),
reason: 'Expected an Exception but got $e for $path',
);
} else {
fail('Failed to parse success file $path: $e');
}
Expand Down
2 changes: 1 addition & 1 deletion tests/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ environment:
flutter: '>=3.22.0'

dependencies:
firebase_ai: ^3.8.0
cloud_functions: ^6.0.6
cloud_functions_platform_interface: ^5.8.9
cloud_functions_web: ^5.1.2
collection: ^1.15.0
firebase_ai: ^3.8.0
firebase_analytics: ^12.1.2
firebase_analytics_platform_interface: ^5.0.6
firebase_analytics_web: ^0.6.1+2
Expand Down
Loading