Skip to content
Merged
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
fix tests
  • Loading branch information
dlarocque committed Jul 9, 2025
commit b1c7798df38f3acdcd03437bb11bcad25b80daaa
12 changes: 6 additions & 6 deletions packages/firebase_ai/firebase_ai/test/api_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -756,7 +756,7 @@ void main() {
expect(
() => VertexSerialization()
.parseGenerateContentResponse(jsonResponse),
throwsA(isA<FirebaseAIException>().having(
throwsA(isA<FirebaseAISdkException>().having(
(e) => e.message, 'message', contains('SearchEntryPoint'))));
});

Expand Down Expand Up @@ -804,7 +804,7 @@ void main() {
};
expect(
() => VertexSerialization().parseGenerateContentResponse(json),
throwsA(isA<FirebaseAIException>().having(
throwsA(isA<FirebaseAISdkException>().having(
(e) => e.message, 'message', contains('GroundingChunk'))));
});

Expand All @@ -820,7 +820,7 @@ void main() {
};
expect(
() => VertexSerialization().parseGenerateContentResponse(json),
throwsA(isA<FirebaseAIException>().having(
throwsA(isA<FirebaseAISdkException>().having(
(e) => e.message, 'message', contains('GroundingSupport'))));
});

Expand All @@ -835,7 +835,7 @@ void main() {
};
expect(
() => VertexSerialization().parseGenerateContentResponse(json),
throwsA(isA<FirebaseAIException>().having(
throwsA(isA<FirebaseAISdkException>().having(
(e) => e.message, 'message', contains('SearchEntryPoint'))));
});

Expand All @@ -855,7 +855,7 @@ void main() {
};
expect(
() => VertexSerialization().parseGenerateContentResponse(json),
throwsA(isA<FirebaseAIException>()
throwsA(isA<FirebaseAISdkException>()
.having((e) => e.message, 'message', contains('Segment'))));
});

Expand All @@ -875,7 +875,7 @@ void main() {
};
expect(
() => VertexSerialization().parseGenerateContentResponse(json),
throwsA(isA<FirebaseAIException>().having(
throwsA(isA<FirebaseAISdkException>().having(
(e) => e.message, 'message', contains('WebGroundingChunk'))));
});
});
Expand Down
Loading