diff --git a/DESCRIPTION b/DESCRIPTION index 57b86d112..818f65abf 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -1,7 +1,7 @@ Type: Package Package: insight Title: Easy Access to Model Information for Various Model Objects -Version: 0.99.0.21 +Version: 0.99.0.22 Authors@R: c(person(given = "Daniel", family = "Lüdecke", diff --git a/tests/testthat/test-find_formula.R b/tests/testthat/test-find_formula.R index ecbf97c32..7aa1a904c 100644 --- a/tests/testthat/test-find_formula.R +++ b/tests/testthat/test-find_formula.R @@ -24,6 +24,9 @@ test_that("formula warns when using backticks", { expect_warning(expect_false(formula_ok(m)), regex = "syntactically") expect_silent(expect_true(formula_ok(m, checks = "dollar"))) expect_error(formula_ok(m, checks = c("dollar", "test")), regex = "invalid options") + # null model checks formula + expect_warning(null_model(m), regex = "Looks like") + expect_silent(null_model(m, verbose = FALSE)) # message types expect_message(expect_false(formula_ok(m, action = "message")), regex = "syntactically") expect_error(expect_false(formula_ok(m, action = "error")), regex = "syntactically")