Skip to content

Commit

Permalink
improve deprecation test
Browse files Browse the repository at this point in the history
  • Loading branch information
sbfnk committed Oct 20, 2023
1 parent bad077c commit cfed869
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tests/testthat/test-get_dist.R
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
test_that("get_dist is deprecated", {
data <- data.table::data.table(mean = 1, mean_sd = 1, sd = 1, sd_sd = 1, source = "test", disease = "test", dist = "gamma")
expect_warning(
get_dist(data, disease = "test", source = "test"),
"deprecated"
expect_deprecated(
get_dist(data, disease = "test", source = "test")
)
})

0 comments on commit cfed869

Please sign in to comment.