Skip to content

Commit 9ff8e37

Browse files
simplify test as suggested in review
1 parent 96ca194 commit 9ff8e37

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

tests/testthat/test-linter_tags.R

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -236,9 +236,5 @@ test_that("available_linters gives precedence to included tags", {
236236
})
237237

238238
test_that("all non-deprecated linters are covered across tags", {
239-
tags <- setdiff(available_tags(), "deprecated")
240-
tagged_linters <- lapply(tags, function(tag) names(linters_with_tags(tag))) # nolint: undesirable_function_linter.
241-
tagged_linters <- unique(unlist(tagged_linters))
242-
all_linters <- names(all_linters())
243-
expect_identical(sort(tagged_linters), sort(all_linters))
239+
expect_true(all(lengths(available_linters()$tags) > 0L))
244240
})

0 commit comments

Comments
 (0)