We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 037b240 commit ab04969Copy full SHA for ab04969
1 file changed
tests/testthat/test-proof_header.R
@@ -2,7 +2,9 @@
2
3
test_that("proof_header", {
4
# errors if no env var set and no string supplied
5
- expect_error(proof_header(request("")), "token not found")
+ withr::with_envvar(new = c("PROOF_TOKEN" = ""), {
6
+ expect_error(proof_header(request("")), "token not found")
7
+ })
8
9
# returns token if given
10
expect_match(proof_header(request(""), "adf")$headers[[1]], "adf")
0 commit comments