Skip to content

Commit

Permalink
Fix Bundle access in CocoaPods unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewheard committed Oct 4, 2024
1 parent 97d9d46 commit 011b13d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions FirebaseVertexAI.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ the Vertex AI in Firebase SDK.
]
unit_tests.resources = [
unit_tests_dir + 'vertexai-sdk-test-data/mock-responses/**/*.{txt,json}',
unit_tests_dir + 'Resources/**/*',
]
end
end
2 changes: 1 addition & 1 deletion FirebaseVertexAI/Tests/Unit/PartTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ final class PartTests: XCTestCase {
}

private static func blueSquareImage() throws -> String {
let imageURL = Bundle.module.url(forResource: "blue", withExtension: "png")!
let imageURL = bundle().url(forResource: "blue", withExtension: "png")!
let imageData = try Data(contentsOf: imageURL)
return imageData.base64EncodedString()
}
Expand Down

0 comments on commit 011b13d

Please sign in to comment.