Skip to content

Commit

Permalink
simplify test as suggested in review
Browse files Browse the repository at this point in the history
  • Loading branch information
IndrajeetPatil committed Sep 7, 2024
1 parent 96ca194 commit 9ff8e37
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions tests/testthat/test-linter_tags.R
Original file line number Diff line number Diff line change
Expand Up @@ -236,9 +236,5 @@ test_that("available_linters gives precedence to included tags", {
})

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

0 comments on commit 9ff8e37

Please sign in to comment.