Skip to content

Commit a7b3fc1

Browse files
Copilotkrlmlr
andcommitted
Add snapshot test for dm_squash_to_tbl() deprecation warning
Co-authored-by: krlmlr <1741643+krlmlr@users.noreply.github.com>
1 parent b9e4bfa commit a7b3fc1

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

tests/testthat/test-zzx-deprecated.R

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -380,3 +380,10 @@ test_that("dm_zoom_to() and related functions work", {
380380
test_that("default_local_src() works", {
381381
expect_s3_class(default_local_src(), "src")
382382
})
383+
384+
test_that("dm_squash_to_tbl() deprecation warning is correct", {
385+
# Test that the deprecation warning shows the correct parameter name .recursive
386+
expect_snapshot({
387+
dm_squash_to_tbl(dm_for_flatten(), fact)
388+
})
389+
})

0 commit comments

Comments
 (0)