Skip to content

Commit

Permalink
Update tests/testthat/helper-outpack-http.R
Browse files Browse the repository at this point in the history
Co-authored-by: Rich FitzJohn <[email protected]>
  • Loading branch information
plietar and richfitz authored Aug 23, 2024
1 parent 8f11014 commit 3876501
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/testthat/helper-outpack-http.R
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ mock_headers <- function(...) {
structure(list(...), class = c("insensitive", "list"))
}

mock_response <- function(content, status = 200L, wrap = TRUE, download = NULL) {
mock_response <- function(content, status = 200L, wrap = TRUE,
download = NULL) {
headers <- mock_headers()
if (!is.null(download)) {
headers <- mock_headers("content-type" = "application/octet-stream")
Expand Down

0 comments on commit 3876501

Please sign in to comment.