diff --git a/tests/testthat/test-get_predicted.R b/tests/testthat/test-get_predicted.R index 49f1af4a0..6a3ca4cf7 100644 --- a/tests/testthat/test-get_predicted.R +++ b/tests/testthat/test-get_predicted.R @@ -580,7 +580,7 @@ test_that("bugfix: used to fail with matrix variables", { foo <- function() { mtcars2 <- mtcars mtcars2$wt <- scale(mtcars2$wt) - return(lm(mpg ~ wt + cyl + gear + disp, data = mtcars2)) + lm(mpg ~ wt + cyl + gear + disp, data = mtcars2) } pred <- get_predicted(foo()) expect_s3_class(pred, c("get_predicted", "numeric"))