Skip to content

Commit

Permalink
Try fix test after fixing check.
Browse files Browse the repository at this point in the history
  • Loading branch information
maciekbanas committed Oct 14, 2024
1 parent 7bfdf65 commit 83ae94f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/testthat/test-helpers.R
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,11 @@ test_that("when token is proper token is passed", {
token = Sys.getenv("GITHUB_PAT"),
mode = "private"
)
mockery::stub(
github_testhost_priv$check_token,
"private$test_token",
TRUE
)
expect_equal(
github_testhost_priv$check_token(Sys.getenv("GITHUB_PAT")),
Sys.getenv("GITHUB_PAT")
Expand Down

0 comments on commit 83ae94f

Please sign in to comment.