Skip to content

Commit

Permalink
Make test independent of local option
Browse files Browse the repository at this point in the history
  • Loading branch information
krlmlr committed Sep 24, 2022
1 parent e44a0e2 commit ea51441
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/testthat/test-zzz-trunc-mat.R
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,10 @@ test_that("trunc_mat output matches known output", {

mtcars2 <- as_tibble(mtcars, rownames = NA)

local_options(digits = 4, width = 80, cli.unicode = l10n_info()$`UTF-8`)
local_options(
digits = 4, width = 80, cli.unicode = l10n_info()$`UTF-8`,
pillar.max_footer_lines = NULL
)

expect_snapshot({
print_without_body(mtcars2, n = 8L, width = 30L)
Expand Down

0 comments on commit ea51441

Please sign in to comment.