Skip to content

Commit

Permalink
fix tests: now only 5 stats editors
Browse files Browse the repository at this point in the history
  • Loading branch information
mpadge committed Jun 28, 2024
1 parent d563c05 commit a8d2416
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: dashboard
Title: What the Package Does (One Line, Title Case)
Version: 0.2.2.028
Version: 0.2.2.029
Authors@R:
person(given = "First",
family = "Last",
Expand Down
2 changes: 1 addition & 1 deletion codemeta.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"name": "dashboard: What the Package Does (One Line, Title Case)",
"codeRepository": "https://github.com/ropensci-review-tools/dashboard",
"license": "https://spdx.org/licenses/MIT",
"version": "0.2.2.028",
"version": "0.2.2.029",
"programmingLanguage": {
"@type": "ComputerLanguage",
"name": "R",
Expand Down
4 changes: 2 additions & 2 deletions tests/testthat/test-editors.R
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ test_that ("editor names", {
q <- gh_editors_team_qry (stats = TRUE)
editors_stats <- gh::gh_gql (query = q)
editors_stats <- editors_stats$data$organization$team$members$nodes
expect_true (length (editors_stats) > 5L)
expect_true (length (editors_stats) >= 5L)
expect_true (length (editors_stats) < length (editors))
nms <- unique (unlist (lapply (editors_stats, names)))
expect_identical (nms, "login") # should have 'login' only
editors_stats <- vapply (editors_stats, function (i) i$login, character (1L))
expect_type (editors_stats, "character")
expect_true (length (editors_stats) > 5L)
expect_true (length (editors_stats) >= 5L)
})

0 comments on commit a8d2416

Please sign in to comment.