Skip to content

Commit d18d3fa

Browse files
committed
Use our classed error helpers
1 parent cea6da5 commit d18d3fa

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

tests/testthat/test-package.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ test_that("package_remote() extracts and generates correct strings", {
2020
expect_equal(package_remote(d), "GitLab::tidyverse/test")
2121

2222
d$del("RemoteType")
23-
expect_error(package_remote(d), "supported remote")
23+
expect_usethis_error(package_remote(d), "supported remote")
2424
})
2525

2626

tests/testthat/test-use-course.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ test_that("conspicuous_place() uses `usethis.destdir` when set", {
154154
test_that("use_course() errors if MIME type is not 'application/zip'", {
155155
skip_on_cran()
156156
skip_if_offline()
157-
expect_error(
157+
expect_usethis_error(
158158
use_course("https://httpbin.org/get", destdir = fs::path_temp()),
159159
"does not have MIME type"
160160
)

0 commit comments

Comments
 (0)