Skip to content

Commit

Permalink
fix: test of format.module
Browse files Browse the repository at this point in the history
  • Loading branch information
averissimo committed Dec 19, 2024
1 parent 2c28142 commit 07f00e3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/testthat/test-modules.R
Original file line number Diff line number Diff line change
Expand Up @@ -510,7 +510,7 @@ testthat::test_that("format.teal_modules returns proper structure", {
appended_mods <- append_module(mods, mod3)

testthat::expect_setequal(
strsplit(gsub("\033\\[[0-9;]*m", "", format(appended_mods)), "\n")[[1]],
strsplit(cli::ansi_strip(format(appended_mods)), "\n")[[1]],
c(
"TEAL ROOT",
" |- a",
Expand All @@ -520,23 +520,23 @@ testthat::test_that("format.teal_modules returns proper structure", {
" | | L- Reportable : FALSE",
" | |- UI Arguments : ",
" | |- Server Arguments : ",
" | L- Transformators : ",
" | L- Transformators : ",
" |- c",
" | |- Datasets : all",
" | |- Properties:",
" | | |- Bookmarkable : FALSE",
" | | L- Reportable : FALSE",
" | |- UI Arguments : ",
" | |- Server Arguments : ",
" | L- Transformators : ",
" | L- Transformators : ",
" L- c",
" |- Datasets : all",
" |- Properties:",
" | |- Bookmarkable : FALSE",
" | L- Reportable : FALSE",
" |- UI Arguments : ",
" |- Server Arguments : ",
" L- Transformators : "
" L- Transformators : "
)
)
})
Expand Down

0 comments on commit 07f00e3

Please sign in to comment.