Skip to content

Commit

Permalink
converted expect_error to snapshot
Browse files Browse the repository at this point in the history
  • Loading branch information
schochastics committed Feb 13, 2025
1 parent bbc888e commit de82802
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/testthat/test-make.R
Original file line number Diff line number Diff line change
Expand Up @@ -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")))
})

Expand Down

0 comments on commit de82802

Please sign in to comment.