Skip to content

Commit

Permalink
update test
Browse files Browse the repository at this point in the history
  • Loading branch information
larmarange committed Jul 1, 2024
1 parent a250eb6 commit ca28f72
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/testthat/test-attach_and_detach.R
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ test_that("Attach and Detach models works", {
mod <- lm(Sepal.Length ~ Sepal.Width + Species, data = iris)
expect_identical(
mod,
mod %>% tidy_and_attach() %>% tidy_get_model()
mod %>% tidy_and_attach(model_matrix_attr = FALSE) %>% tidy_get_model()
)

tb <- broom::tidy(mod)
Expand Down Expand Up @@ -33,3 +33,4 @@ test_that("tidy_and_attach() handles models without exponentiate arguments", {
expect_error(mod %>% tidy_and_attach(exponentiate = TRUE))
expect_error(mod %>% tidy_and_attach(), NA)
})

Check warning on line 36 in tests/testthat/test-attach_and_detach.R

View workflow job for this annotation

GitHub Actions / lint

file=tests/testthat/test-attach_and_detach.R,line=36,col=1,[trailing_blank_lines_linter] Trailing blank lines are superfluous.

0 comments on commit ca28f72

Please sign in to comment.