Skip to content

Commit

Permalink
[skip style] [skip vbump] Restyle files
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Jul 31, 2024
1 parent b395c29 commit 93c2117
Showing 1 changed file with 16 additions and 12 deletions.
28 changes: 16 additions & 12 deletions tests/testthat/test-teal_data.R
Original file line number Diff line number Diff line change
Expand Up @@ -29,20 +29,24 @@ testthat::test_that("teal_data initializes teal_data object with @datanames take
})

testthat::test_that(
"teal_data initializes teal_data object without @datanames taken from join_keys if objects did not exist in env", {
testthat::expect_identical(
datanames(teal_data(join_keys = join_keys(join_key("parent", "child", "id")))),
character(0)
)
})
"teal_data initializes teal_data object without @datanames taken from join_keys if objects did not exist in env",
{
testthat::expect_identical(
datanames(teal_data(join_keys = join_keys(join_key("parent", "child", "id")))),
character(0)
)
}
)

testthat::test_that(
"teal_data initializes teal_data object with @datanames taken only from passed objects and not join_keys", {
testthat::expect_identical(
datanames(teal_data(iris = iris, join_keys = join_keys(join_key("parent", "child", "id")))),
"iris"
)
})
"teal_data initializes teal_data object with @datanames taken only from passed objects and not join_keys",
{
testthat::expect_identical(
datanames(teal_data(iris = iris, join_keys = join_keys(join_key("parent", "child", "id")))),
"iris"
)
}
)


testthat::test_that("teal_data returns teal_data when data passed as named list", {
Expand Down

0 comments on commit 93c2117

Please sign in to comment.