From 9f793ebb9060ab1e689187cb7cfdc8792a129c7b Mon Sep 17 00:00:00 2001 From: Nicholas Clark Date: Wed, 11 Sep 2024 13:11:07 +1000 Subject: [PATCH] fix bug in test --- tests/testthat/test-binomial.R | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/testthat/test-binomial.R b/tests/testthat/test-binomial.R index a79c1756..9d3ef5ef 100644 --- a/tests/testthat/test-binomial.R +++ b/tests/testthat/test-binomial.R @@ -164,7 +164,8 @@ test_that("binomial() post-processing works", { silent = 2)) fc <- forecast(mod) expect_true(inherits(fc, 'mvgam_forecast')) - expect_no_error(plot_mvgam_uncertainty(mod)) + expect_error(plot_mvgam_uncertainty(mod)) + expect_error(stability(mod)) }) # All tests should apply to beta_binomial as well