Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions tests/testthat/_snaps/snapshot.md
Original file line number Diff line number Diff line change
Expand Up @@ -258,13 +258,13 @@
Code
cat(snapshot_accept_hint("_default", "bar.R", reset_output = FALSE))
Output
* Run ]8;;ide:run:testthat::snapshot_accept('bar.R')testthat::snapshot_accept('bar.R')]8;; to accept the change.
* Run ]8;;ide:run:testthat::snapshot_review('bar.R')testthat::snapshot_review('bar.R')]8;; to interactively review the change.
* Run `testthat::snapshot_accept('bar.R')` to accept the change.
* Run `testthat::snapshot_review('bar.R')` to interactively review the change.
Code
cat(snapshot_accept_hint("foo", "bar.R", reset_output = FALSE))
Output
* Run ]8;;ide:run:testthat::snapshot_accept('foo/bar.R')testthat::snapshot_accept('foo/bar.R')]8;; to accept the change.
* Run ]8;;ide:run:testthat::snapshot_review('foo/bar.R')testthat::snapshot_review('foo/bar.R')]8;; to interactively review the change.
* Run `testthat::snapshot_accept('foo/bar.R')` to accept the change.
* Run `testthat::snapshot_review('foo/bar.R')` to interactively review the change.

# expect_snapshot validates its inputs

Expand Down
2 changes: 0 additions & 2 deletions tests/testthat/test-snapshot.R
Original file line number Diff line number Diff line change
Expand Up @@ -166,8 +166,6 @@ test_that("errors and warnings are folded", {
# })

test_that("hint is informative", {
local_reproducible_output(crayon = TRUE, hyperlinks = TRUE, rstudio = TRUE)

expect_snapshot({
cat(snapshot_accept_hint("_default", "bar.R", reset_output = FALSE))
cat(snapshot_accept_hint("foo", "bar.R", reset_output = FALSE))
Expand Down
Loading