Skip to content

Commit

Permalink
Standardise snapshot test (#384)
Browse files Browse the repository at this point in the history
  • Loading branch information
hadley authored Jan 23, 2024
1 parent 8dc6497 commit f44b7bc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions tests/testthat/_snaps/form.md
Original file line number Diff line number Diff line change
Expand Up @@ -118,20 +118,20 @@
form$enctype <- "multipart"
show_response(html_form_submit(form))
Output
POST multipart/form-data; boundary=---<divider>
POST multipart/form-data; boundary=---{divider}
Query string:
---<divider>
---{divider}
Content-Disposition: form-data; name="x"
1
---<divider>
---{divider}
Content-Disposition: form-data; name="x"
2
---<divider>
---{divider}
Content-Disposition: form-data; name="y"
3
---<divider>--
---{divider}

2 changes: 1 addition & 1 deletion tests/testthat/test-form.R
Original file line number Diff line number Diff line change
Expand Up @@ -208,5 +208,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 f44b7bc

Please sign in to comment.