Skip to content

Commit

Permalink
revert changes in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
m7pr committed Sep 13, 2024
1 parent 1fbb908 commit b7d9ea1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/testthat/test-modules.R
Original file line number Diff line number Diff line change
Expand Up @@ -534,7 +534,7 @@ testthat::test_that("module datanames is appended by its transformers datanames"
testthat::expect_identical(out$datanames, c("c", "a", "b"))
})

testthat::test_that("module datanames is set to union(datanames, 'all') if transformer $datanames is 'all'", {
testthat::test_that("module datanames is set to 'all' if transformer $datanames is 'all'", {
transformer_w_datanames <- teal_transform_module(
ui = function(id) NULL,
server = function(id, data) {
Expand All @@ -551,7 +551,7 @@ testthat::test_that("module datanames is set to union(datanames, 'all') if trans
)

out <- module(datanames = "c", transformers = list(transformer_w_datanames))
testthat::expect_identical(out$datanames, c("c", "all"))
testthat::expect_identical(out$datanames, "all")
})

testthat::test_that("module datanames stays 'all' regardless of transformers", {
Expand Down

0 comments on commit b7d9ea1

Please sign in to comment.