Skip to content

Commit 9cc55f6

Browse files
committed
Rename snapshot files
1 parent 37e49c3 commit 9cc55f6

File tree

6 files changed

+2
-2
lines changed

6 files changed

+2
-2
lines changed

tests/testthat/test-expect-doppelganger.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,15 +29,15 @@ test_that("grid doppelgangers pass", {
2929
test_that("stale snapshots are skipped", {
3030
plot <- ggplot2::ggplot() + ggplot2::labs()
3131
title <- "stale snapshots are skipped"
32-
new_path <- test_path("_snaps", "expectations", "stale-snapshots-are-skipped.new.svg")
32+
new_path <- test_path("_snaps", "expect-doppelganger", "stale-snapshots-are-skipped.new.svg")
3333

3434
if (regenerate_snapshots()) {
3535
expect_doppelganger(title, plot)
3636

3737
# Update engine field to a stale version
3838
file <- new_path
3939
if (!file.exists(file)) {
40-
file <- test_path("_snaps", "expectations", "stale-snapshots-are-skipped.svg")
40+
file <- test_path("_snaps", "expect-doppelganger", "stale-snapshots-are-skipped.svg")
4141
}
4242
lines <- readLines(file)
4343
lines <- sub("data-engine-version='[0-9.]+'", "data-engine-version='0.1'", lines)

0 commit comments

Comments
 (0)