Skip to content

Commit

Permalink
remove R pipe from unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Aleksander Chlebowski committed Nov 22, 2023
1 parent 25925e2 commit cf92fa3
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 2 additions & 0 deletions tests/testthat/test-module_nested_tabs.R
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
teal_data <- teal.data::teal_data()
teal_data <- within(teal_data, iris <- head(iris))
teal_data <- teal.data::teal_data() |> within(iris <- head(iris))
datanames(teal_data) <- "iris"
filtered_data <- teal_data_to_filtered_data(teal_data)
Expand Down
6 changes: 3 additions & 3 deletions tests/testthat/test-module_tabs_with_filters.R
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
teal_data <- teal.data::teal_data() |>
within(iris <- head(iris)) |>
within(mtcars <- mtcars)
teal_data <- teal.data::teal_data()
teal_data <- within(teal_data, iris <- head(iris))
teal_data <- within(teal_data, mtcars <- head(mtcars))
datanames(teal_data) <- c("iris", "mtcars")
filtered_data <- teal_data_to_filtered_data(teal_data)

Expand Down
2 changes: 1 addition & 1 deletion tests/testthat/test-module_teal_with_splash.R
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ testthat::test_that("srv_teal_with_splash teal_data_rv_validate throws then qenv
id = "test",
data = teal_data_module(
ui = function(id) div(),
server = function(id) reactive(teal_data() |> within(stop("not good")))
server = function(id) reactive(teal_data() %>% within(stop("not good")))
),
modules = modules(example_module())
),
Expand Down

0 comments on commit cf92fa3

Please sign in to comment.