Skip to content

Commit 1cc4a5d

Browse files
committed
fix
1 parent f7a165c commit 1cc4a5d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/testthat/test-get_datagrid.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -438,8 +438,8 @@ test_that("get_datagrid - include_random works with interacting random effects",
438438
out <- insight::get_datagrid(model, by = c("cyl", "gear", "vs"))
439439
expect_named(out, c("cyl", "gear", "vs", "hp"))
440440
expect_identical(dim(out), c(18L, 4L))
441-
out <- get_predicted(model, out, allow.new.levels = TRUE)
442-
expect_identical(dim(out), c(18L, 3L))
441+
out <- get_predicted(model, data = out, allow.new.levels = TRUE)
442+
expect_identical(dim(as.data.frame(out)), c(18L, 3L))
443443
expect_equal(
444444
as.numeric(out),
445445
c(

0 commit comments

Comments
 (0)