Skip to content

Commit

Permalink
update test too
Browse files Browse the repository at this point in the history
  • Loading branch information
Aariq committed Mar 22, 2024
1 parent ba53994 commit a827c57
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/testthat/test-get_mol_kegg.R
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,16 @@ test_that("get_mol_kegg writes files", {
expect_true(fs::file_exists(fs::path(out$mol_path)))
})

test_that("get_mol_kegg errors unless one of compound_id or pathway_id", {
test_that("get_mol_kegg errors unless one of compound_ids or pathway_ids", {
skip_if_offline()
skip_on_cran()

dir <- withr::local_tempdir()
expect_error(get_mol_kegg(dir = dir),
"One of `compound_id` or `pathway_id` are required")
"One of `compound_ids` or `pathway_ids` are required")
expect_error(
get_mol_kegg(compound_ids = "C16181", pathway_ids = "map00361", dir = dir),
"One of `compound_id` or `pathway_id` are required"
"One of `compound_ids` or `pathway_ids` are required"
)
})

Expand Down

0 comments on commit a827c57

Please sign in to comment.