From de8280238156526d7e4a2adf05469fd36bc8f6a4 Mon Sep 17 00:00:00 2001 From: schochastics Date: Thu, 13 Feb 2025 19:41:55 +0100 Subject: [PATCH] converted expect_error to snapshot --- tests/testthat/test-make.R | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/testthat/test-make.R b/tests/testthat/test-make.R index a63560b87a..4fa0c5b834 100644 --- a/tests/testthat/test-make.R +++ b/tests/testthat/test-make.R @@ -252,7 +252,7 @@ test_that("compatibility when arguments are not named", { }) test_that("make_empty_graph gives an error for invalid arguments", { - expect_error(make_empty_graph(NULL)) + expect_snapshot(make_empty_graph(NULL), error = TRUE) expect_warning(expect_error(make_empty_graph("spam"))) })