Skip to content

Commit

Permalink
Fix camelCase JSON in unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewheard committed Dec 6, 2024
1 parent 79827a6 commit 55c899c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions FirebaseVertexAI/Tests/Unit/GenerationConfigTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ final class GenerationConfigTests: XCTestCase {
"frequencyPenalty" : \(frequencyPenalty),
"maxOutputTokens" : \(maxOutputTokens),
"presencePenalty" : \(presencePenalty),
"responseMIMEType" : "\(responseMIMEType)",
"responseMimeType" : "\(responseMIMEType)",
"responseSchema" : {
"items" : {
"nullable" : false,
Expand Down Expand Up @@ -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" : {
Expand Down
2 changes: 1 addition & 1 deletion FirebaseVertexAI/Tests/Unit/PartTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ final class PartTests: XCTestCase {
XCTAssertEqual(json, """
{
"fileData" : {
"fileURI" : "\(fileURI)",
"fileUri" : "\(fileURI)",
"mimeType" : "\(mimeType)"
}
}
Expand Down

0 comments on commit 55c899c

Please sign in to comment.