Skip to content

Commit

Permalink
Re-check FIRAAppCheckDebugToken
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewheard committed Oct 25, 2024
1 parent f936083 commit 62d5b82
Showing 1 changed file with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,18 @@ final class IntegrationTests: XCTestCase {
storage = Storage.storage()
}

func testDebugTokenProvided() {
if ProcessInfo.processInfo.environment["FIRAAppCheckDebugToken"] == nil {
XCTFail("No App Check debug token provided in FIRAAppCheckDebugToken.")
}
}

func testDebugTokenNotProvided() {
if ProcessInfo.processInfo.environment["FIRAAppCheckDebugToken"] != nil {
XCTFail("Token not provided; intentionally failing for testing.")
}
}

// MARK: - Generate Content

func testGenerateContent() async throws {
Expand Down

0 comments on commit 62d5b82

Please sign in to comment.