Skip to content

Commit

Permalink
update test
Browse files Browse the repository at this point in the history
  • Loading branch information
donyunardi committed Dec 18, 2023
1 parent 5e6a758 commit 85209fd
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion tests/testthat/test-add_list_load_rm_pkgs.R
Original file line number Diff line number Diff line change
Expand Up @@ -102,10 +102,19 @@ test_that("add_pkgs, list_pkgs, load_pkgs, rm_pkgs works", {
)

expect_warning(
load_pkgs(branch_name = "update_description", git_pull = TRUE),
load_pkgs(branch_name = "update_description"),
"Can't switch to update_description"
)

expect_output(
load_pkgs(branch_name = "update_description", load_verbose = ""),
"Can't switch to update_description"
)

expect_error(
load_pkgs(branch_name = "update_description", load_verbose = "error")
)

rm_pkgs("formultiloadrunittest")
x <- getOption("multiloadr")
expect_equal(length(x), 0)
Expand Down

0 comments on commit 85209fd

Please sign in to comment.