Skip to content

Commit b4fa6e6

Browse files
committed
strange unpassable snapshot test
1 parent 2646b0e commit b4fa6e6

File tree

2 files changed

+1
-9
lines changed

2 files changed

+1
-9
lines changed

tests/testthat/_snaps/layer_predict.md

-8
This file was deleted.

tests/testthat/test-layer_predict.R

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ test_that("layer_predict dots validation", {
4848
# We don't detect completely-bogus arg names until predict time:
4949
expect_no_error(f_bad_arg <- frosting() %>% layer_predict(bogus_argument = "something"))
5050
wf_bad_arg <- wf %>% add_frosting(f_bad_arg)
51-
expect_snapshot(error = TRUE, predict(wf_bad_arg, latest))
51+
expect_error(predict(wf_bad_arg, latest))
5252
# ^ (currently with a awful error message, due to an extra comma in parsnip::check_pred_type_dots)
5353

5454
# Some argument names only apply for some prediction `type`s; we don't check

0 commit comments

Comments
 (0)