From 55c899cbd18641119d37461cc8599e93cfce63b8 Mon Sep 17 00:00:00 2001 From: Andrew Heard Date: Fri, 6 Dec 2024 18:37:12 -0500 Subject: [PATCH] Fix camelCase JSON in unit tests --- FirebaseVertexAI/Tests/Unit/GenerationConfigTests.swift | 4 ++-- FirebaseVertexAI/Tests/Unit/PartTests.swift | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/FirebaseVertexAI/Tests/Unit/GenerationConfigTests.swift b/FirebaseVertexAI/Tests/Unit/GenerationConfigTests.swift index e6bfe7cf09b..23f85e8bdbd 100644 --- a/FirebaseVertexAI/Tests/Unit/GenerationConfigTests.swift +++ b/FirebaseVertexAI/Tests/Unit/GenerationConfigTests.swift @@ -73,7 +73,7 @@ final class GenerationConfigTests: XCTestCase { "frequencyPenalty" : \(frequencyPenalty), "maxOutputTokens" : \(maxOutputTokens), "presencePenalty" : \(presencePenalty), - "responseMIMEType" : "\(responseMIMEType)", + "responseMimeType" : "\(responseMIMEType)", "responseSchema" : { "items" : { "nullable" : false, @@ -109,7 +109,7 @@ final class GenerationConfigTests: XCTestCase { let json = try XCTUnwrap(String(data: jsonData, encoding: .utf8)) XCTAssertEqual(json, """ { - "responseMIMEType" : "\(mimeType)", + "responseMimeType" : "\(mimeType)", "responseSchema" : { "nullable" : false, "properties" : { diff --git a/FirebaseVertexAI/Tests/Unit/PartTests.swift b/FirebaseVertexAI/Tests/Unit/PartTests.swift index d48600e9013..aea3c1b5d92 100644 --- a/FirebaseVertexAI/Tests/Unit/PartTests.swift +++ b/FirebaseVertexAI/Tests/Unit/PartTests.swift @@ -132,7 +132,7 @@ final class PartTests: XCTestCase { XCTAssertEqual(json, """ { "fileData" : { - "fileURI" : "\(fileURI)", + "fileUri" : "\(fileURI)", "mimeType" : "\(mimeType)" } }