Skip to content

Commit b1c7798

Browse files
committed
fix tests
1 parent fcd5fa0 commit b1c7798

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

packages/firebase_ai/firebase_ai/test/api_test.dart

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -756,7 +756,7 @@ void main() {
756756
expect(
757757
() => VertexSerialization()
758758
.parseGenerateContentResponse(jsonResponse),
759-
throwsA(isA<FirebaseAIException>().having(
759+
throwsA(isA<FirebaseAISdkException>().having(
760760
(e) => e.message, 'message', contains('SearchEntryPoint'))));
761761
});
762762

@@ -804,7 +804,7 @@ void main() {
804804
};
805805
expect(
806806
() => VertexSerialization().parseGenerateContentResponse(json),
807-
throwsA(isA<FirebaseAIException>().having(
807+
throwsA(isA<FirebaseAISdkException>().having(
808808
(e) => e.message, 'message', contains('GroundingChunk'))));
809809
});
810810

@@ -820,7 +820,7 @@ void main() {
820820
};
821821
expect(
822822
() => VertexSerialization().parseGenerateContentResponse(json),
823-
throwsA(isA<FirebaseAIException>().having(
823+
throwsA(isA<FirebaseAISdkException>().having(
824824
(e) => e.message, 'message', contains('GroundingSupport'))));
825825
});
826826

@@ -835,7 +835,7 @@ void main() {
835835
};
836836
expect(
837837
() => VertexSerialization().parseGenerateContentResponse(json),
838-
throwsA(isA<FirebaseAIException>().having(
838+
throwsA(isA<FirebaseAISdkException>().having(
839839
(e) => e.message, 'message', contains('SearchEntryPoint'))));
840840
});
841841

@@ -855,7 +855,7 @@ void main() {
855855
};
856856
expect(
857857
() => VertexSerialization().parseGenerateContentResponse(json),
858-
throwsA(isA<FirebaseAIException>()
858+
throwsA(isA<FirebaseAISdkException>()
859859
.having((e) => e.message, 'message', contains('Segment'))));
860860
});
861861

@@ -875,7 +875,7 @@ void main() {
875875
};
876876
expect(
877877
() => VertexSerialization().parseGenerateContentResponse(json),
878-
throwsA(isA<FirebaseAIException>().having(
878+
throwsA(isA<FirebaseAISdkException>().having(
879879
(e) => e.message, 'message', contains('WebGroundingChunk'))));
880880
});
881881
});

0 commit comments

Comments
 (0)