Skip to content

Commit b5d797c

Browse files
author
LiNk-NY
committed
update status() unit test
1 parent 1e764fa commit b5d797c

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

tests/testthat/test_api.R

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,13 @@ library(GenomicDataCommons)
22
context('API')
33

44
test_that("status returns correctly", {
5-
res = status()
6-
expect_equal(length(res), 5)
7-
expect_equal(res$status,"OK")
5+
res <- status()
6+
metadata_nms <- c(
7+
"commit", "data_release", "data_release_version",
8+
"status", "tag", "version"
9+
)
10+
expect_identical(names(res), metadata_nms)
11+
expect_identical(res$status, "OK")
812
})
913

1014
test_that('query', {

0 commit comments

Comments
 (0)