From 6ca864f002305f7cbd748238aa6a518afa2677c8 Mon Sep 17 00:00:00 2001 From: Rodrigo Basa Date: Mon, 27 May 2024 16:04:29 +0800 Subject: [PATCH] delint for box.linters --- inst/templates/unit_tests/tests/testthat/test-main.R | 2 +- tests/e2e/app-files/hello.R | 2 +- tests/e2e/app-files/say_hello.R | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/inst/templates/unit_tests/tests/testthat/test-main.R b/inst/templates/unit_tests/tests/testthat/test-main.R index 003ae7e8..b8ddd76a 100644 --- a/inst/templates/unit_tests/tests/testthat/test-main.R +++ b/inst/templates/unit_tests/tests/testthat/test-main.R @@ -3,7 +3,7 @@ box::use( testthat[expect_true, test_that], ) box::use( - app/main[server, ui], + app/main[server], ) test_that("main server works", { diff --git a/tests/e2e/app-files/hello.R b/tests/e2e/app-files/hello.R index 44f36947..2e85bf30 100644 --- a/tests/e2e/app-files/hello.R +++ b/tests/e2e/app-files/hello.R @@ -1,5 +1,5 @@ box::use( - shiny[ # nolint + shiny[ actionButton, bootstrapPage, isolate, diff --git a/tests/e2e/app-files/say_hello.R b/tests/e2e/app-files/say_hello.R index c69dbd17..7e221c9c 100644 --- a/tests/e2e/app-files/say_hello.R +++ b/tests/e2e/app-files/say_hello.R @@ -1,3 +1,4 @@ +#' @export say_hello <- function(name) { paste0("Hello, ", name, "!") }