Skip to content

Commit

Permalink
Change another test
Browse files Browse the repository at this point in the history
  • Loading branch information
jennybc committed Nov 6, 2024
1 parent 8f16595 commit 914ba06
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions tests/testthat/_snaps/use_import_from.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,15 @@
Error in `use_import_from()`:
x `package` must be a single string.
Code
use_import_from(c("tibble", "rlang"))
use_import_from(c("desc", "rlang"))
Condition
Error in `use_import_from()`:
x `package` must be a single string.
Code
use_import_from("tibble", "pool_noodle")
use_import_from("desc", "pool_noodle")
Condition
Error in `map2()`:
i In index: 1.
Caused by error in `.f()`:
x Can't find `tibble::pool_noodle()`.
x Can't find `desc::pool_noodle()`.

4 changes: 2 additions & 2 deletions tests/testthat/test-use_import_from.R
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ test_that("use_import_from() generates helpful errors", {

expect_snapshot(error = TRUE, {
use_import_from(1)
use_import_from(c("tibble", "rlang"))
use_import_from(c("desc", "rlang"))

use_import_from("tibble", "pool_noodle")
use_import_from("desc", "pool_noodle")
})
})

0 comments on commit 914ba06

Please sign in to comment.