Skip to content

Commit

Permalink
Move transformation to correct place
Browse files Browse the repository at this point in the history
  • Loading branch information
hadley committed Jan 23, 2024
1 parent 74ad186 commit 562d3ae
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/testthat/helper.R
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ app_request <- function() {

show_response <- function(x) {
strip_divider <- function(x) {
gsub("-{3,}[a-f0-9]+", "---<divider>", x)
gsub("-{3,}[A-Za-z0-9-]+", "---{divider}", x)
}

x <- httr::content(x)
Expand Down
2 changes: 1 addition & 1 deletion tests/testthat/test-form.R
Original file line number Diff line number Diff line change
Expand Up @@ -207,5 +207,5 @@ test_that("can submit using three primary techniques", {

form$enctype <- "multipart"
show_response(html_form_submit(form))
}, transform = function(x) gsub("---.+$", "---{divider}", x))
})
})

0 comments on commit 562d3ae

Please sign in to comment.