Skip to content

Commit

Permalink
Fix test case
Browse files Browse the repository at this point in the history
  • Loading branch information
juliasilge committed Sep 29, 2023
1 parent dd11c9b commit 7cd9f31
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/testthat/_snaps/pin-read-write.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
Error in `pin_write()`:
! `name` must be a string
Code
pin_write(board, mtcars, name = 1:10, "json")
pin_write(board, mtcars, name = "mtcars", "json")
Condition
Error in `pin_write()`:
! Arguments after the dots `...` must be named, like `type = "json"`.
Expand Down
2 changes: 1 addition & 1 deletion tests/testthat/test-pin-read-write.R
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ test_that("useful errors on bad inputs", {
expect_snapshot(error = TRUE, {
pin_write(mtcars)
pin_write(board, mtcars, name = 1:10)
pin_write(board, mtcars, name = 1:10, "json")
pin_write(board, mtcars, name = "mtcars", "json")
pin_write(board, mtcars, name = "mtcars", type = "froopy-loops")
pin_write(board, mtcars, name = "mtcars", metadata = 1)
})
Expand Down

0 comments on commit 7cd9f31

Please sign in to comment.