Skip to content

Commit 55c899c

Browse files
committed
Fix camelCase JSON in unit tests
1 parent 79827a6 commit 55c899c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

FirebaseVertexAI/Tests/Unit/GenerationConfigTests.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ final class GenerationConfigTests: XCTestCase {
7373
"frequencyPenalty" : \(frequencyPenalty),
7474
"maxOutputTokens" : \(maxOutputTokens),
7575
"presencePenalty" : \(presencePenalty),
76-
"responseMIMEType" : "\(responseMIMEType)",
76+
"responseMimeType" : "\(responseMIMEType)",
7777
"responseSchema" : {
7878
"items" : {
7979
"nullable" : false,
@@ -109,7 +109,7 @@ final class GenerationConfigTests: XCTestCase {
109109
let json = try XCTUnwrap(String(data: jsonData, encoding: .utf8))
110110
XCTAssertEqual(json, """
111111
{
112-
"responseMIMEType" : "\(mimeType)",
112+
"responseMimeType" : "\(mimeType)",
113113
"responseSchema" : {
114114
"nullable" : false,
115115
"properties" : {

FirebaseVertexAI/Tests/Unit/PartTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ final class PartTests: XCTestCase {
132132
XCTAssertEqual(json, """
133133
{
134134
"fileData" : {
135-
"fileURI" : "\(fileURI)",
135+
"fileUri" : "\(fileURI)",
136136
"mimeType" : "\(mimeType)"
137137
}
138138
}

0 commit comments

Comments
 (0)