Skip to content

Commit

Permalink
Mock version name, for timestamp issue
Browse files Browse the repository at this point in the history
  • Loading branch information
juliasilge committed Aug 11, 2023
1 parent 1357fc2 commit 3122ab4
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions R/pin-meta.R
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,12 @@ test_api_meta <- function(board) {
})

testthat::test_that("can update pin metadata", {
mock_version_name <-
mockery::mock(
"20130104T050607Z-xxxxx",
"20130204T050607Z-yyyyy"
)
testthat::local_mocked_bindings(version_name = mock_version_name)
# RSC requires at least 3 characters
name <- local_pin(board, 1, title = "xxx-a1", description = "xxx-a2")
pin_write(board, 1, name, title = "xxx-b1", description = "xxx-b2", force_identical_write = TRUE)
Expand Down

0 comments on commit 3122ab4

Please sign in to comment.