Skip to content

Commit eec983e

Browse files
committed
Use testthat 3rd ed
1 parent 1378c34 commit eec983e

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

R-packages/covidcast/DESCRIPTION

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,3 +60,4 @@ Suggests:
6060
tibble,
6161
vdiffr
6262
VignetteBuilder: knitr
63+
Config/testthat/edition: 3

R-packages/covidcast/tests/testthat/test-plot.R

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -133,9 +133,7 @@ test_that("warn on incomplete metadata", {
133133

134134
expect_warning(plot(fake_data), NA)
135135
attributes(fake_data)$metadata = list(geo_type = "state", mean_value = 0)
136-
136+
137137
expect_warning(plot(fake_data),
138-
"Metadata for signal mean and standard deviation not",
139-
"available; defaulting to observed mean and standard",
140-
"deviation to set plot range.")
138+
class="covidcast_plot_meta_not_found")
141139
})

0 commit comments

Comments
 (0)