Skip to content

Commit

Permalink
add 'this link' to bad_link_text options
Browse files Browse the repository at this point in the history
  • Loading branch information
chfoster committed Oct 23, 2024
1 parent 546f4c1 commit 9e0feb3
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion R/data-bad_link_text.R
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
#' https://www.w3.org/WAI/WCAG22/Understanding/link-purpose-in-context).
#'
#' @format ## `bad_link_text`
#' A data frame with 52 rows and 1 columns:
#' A data frame with 53 rows and 1 columns:
#' \describe{
#' \item{bad_link_text}{Lower cased examples of non-descriptive link text}
#' }
Expand Down
3 changes: 2 additions & 1 deletion data-raw/bad_link_text.R
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ bad_link_text <- data.frame(
"download file", "download here", "download jpg", "download jpeg",
"download pdf", "download png", "download svg", "download word",
"download xslx", "further information", "go here", "learn more",
"link to", "read more", "this page", "visit this", "web page", "web site"
"link to", "read more", "this page", "visit this", "web page", "web site",
"this link"
)
)

Expand Down
Binary file modified data/bad_link_text.rda
Binary file not shown.
2 changes: 1 addition & 1 deletion man/bad_link_text.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion tests/testthat/test-data-bad_link_text.R
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ test_that("Returns data frame", {

test_that("Matches description", {
# If this test fails, update the notes in R/data-bad_link_text.R
expect_equal(nrow(dfeshiny::bad_link_text), 52)
expect_equal(nrow(dfeshiny::bad_link_text), 53)
expect_equal(names(dfeshiny::bad_link_text), "bad_link_text")
})

Expand Down

0 comments on commit 9e0feb3

Please sign in to comment.