Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions clinUtils/tests/testthat/test_getClinDT.R
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ test_that("Invisible columns are not shown in the DataTables output", {
cDefs <- dt$x$options$columnDefs
cDefsNonVisible <- sapply(cDefs, function(x) isFALSE(x$visible))
expect_true(any(cDefsNonVisible))
expect(cDefs[[which(cDefsNonVisible)]]$targets, 1)
expect_equal(cDefs[[which(cDefsNonVisible)]]$targets, 1)

})

Expand Down Expand Up @@ -173,7 +173,7 @@ test_that("Percentages are correctly formatted", {
cDefs <- dt$x$options$columnDefs
cDefsFmtPercentage <- sapply(cDefs, function(x) "render" %in% names(x) && grepl("formatPercentage", x$render))
expect_true(any(cDefsFmtPercentage))
expect(cDefs[[which(cDefsFmtPercentage)]]$targets, 1)
expect_equal(cDefs[[which(cDefsFmtPercentage)]]$targets, 1)

})

Expand Down Expand Up @@ -867,4 +867,4 @@ test_that("An error is generated if the file to export to has an incorrect exten
pattern = "extension"
)

})
})