Skip to content

Commit

Permalink
delint
Browse files Browse the repository at this point in the history
  • Loading branch information
radbasa committed Aug 13, 2024
1 parent 8f8c98c commit 7ec5b28
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion tests/testthat/test-lsp_completion_whole_package.R
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ test_that("completion of whole package attached works", {

result <- client %>% respond_completion(
temp_file, c(1, 14),
retry_when = function(result) result$items %>% keep(~ .$label == "str_count") %>% length() == 0
retry_when = function(result) result$items %>%
keep(~ .$label == "str_count") %>% length() == 0
)

expect_length(result$items %>% keep(~ .$label == "str_count"), 1)
Expand Down
5 changes: 3 additions & 2 deletions tests/testthat/test-signature.R
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,9 @@ test_that("signature works with box-attached functions", {

client %>% did_save(temp_file)

result <- client %>% respond_signature(temp_file, c(1, 10),
retry_when = function(result) result$signatures %>% length() == 0)
result <- client %>% respond_signature(
temp_file, c(1, 10),
retry_when = function(result) result$signatures %>% length() == 0)
expect_length(result$signatures, 1)
expect_match(result$signatures[[1]]$label, "str_count\\(.*")
expect_equal(result$signatures[[1]]$documentation$kind, "markdown")
Expand Down

0 comments on commit 7ec5b28

Please sign in to comment.