Skip to content

Commit

Permalink
Update snaps.
Browse files Browse the repository at this point in the history
  • Loading branch information
jonthegeek committed Nov 13, 2023
1 parent 381e436 commit 8718354
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
3 changes: 2 additions & 1 deletion tests/testthat/_snaps/onload.md
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,8 @@
Code
set_cookie_response(cookie_name = "name_of_cookie", cookie_value = "contents of the cookie",
http_only = TRUE, expiration = NULL, redirect = "/", status = 200L)
Warning <rlang_warning>
Condition
Warning:
Unexpected status code.
x Status code 200 provided, expected 300 to 399.
Output
Expand Down
15 changes: 9 additions & 6 deletions tests/testthat/_snaps/server.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,24 +27,27 @@
Code
set_cookie(cookie_name = "testname", cookie_value = "test contents",
secure_only = FALSE, same_site = "None", session = session)
Error <rlang_error>
When same_site is None, secure_only must be TRUE.
Condition
Error in `.validate_same_site()`:
! When same_site is None, secure_only must be TRUE.

---

Code
set_cookie(cookie_name = "testname", cookie_value = "test contents", same_site = "blargh",
session = session)
Error <rlang_error>
same_site must be one of Strict, Lax, or None.
Condition
Error in `.validate_same_site()`:
! same_site must be one of Strict, Lax, or None.

---

Code
set_cookie(cookie_name = "testname", cookie_value = "test contents", same_site = 1:
3, session = session)
Error <rlang_error>
`same_site` must be a length-1 <character> or NULL.
Condition
Error in `.validate_scalar()`:
! `same_site` must be a length-1 <character> or NULL.

# remove_cookie works.

Expand Down

0 comments on commit 8718354

Please sign in to comment.