From b4ed28ade3a5d217dadb51fe9287aca2e2763bea Mon Sep 17 00:00:00 2001 From: Jenny Bryan Date: Thu, 15 Aug 2024 10:57:08 -0700 Subject: [PATCH] Use older anonymous function syntax in more places --- tests/testthat/test-rename-files.R | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/testthat/test-rename-files.R b/tests/testthat/test-rename-files.R index e7dc92cc3..cdfef3906 100644 --- a/tests/testthat/test-rename-files.R +++ b/tests/testthat/test-rename-files.R @@ -13,7 +13,7 @@ test_that("checks uncommitted files", { test_that("renames R and test and snapshot files", { create_local_package() - local_mocked_bindings(challenge_uncommitted_changes = \(...) invisible()) + local_mocked_bindings(challenge_uncommitted_changes = function(...) invisible()) git_init() use_r("foo", open = FALSE) @@ -32,7 +32,7 @@ test_that("renames R and test and snapshot files", { test_that("renames src/ files", { create_local_package() - local_mocked_bindings(challenge_uncommitted_changes = \(...) invisible()) + local_mocked_bindings(challenge_uncommitted_changes = function(...) invisible()) git_init() use_src() @@ -50,7 +50,7 @@ test_that("renames src/ files", { test_that("strips context from test file", { create_local_package() - local_mocked_bindings(challenge_uncommitted_changes = \(...) invisible()) + local_mocked_bindings(challenge_uncommitted_changes = function(...) invisible()) git_init() use_testthat() @@ -70,7 +70,7 @@ test_that("strips context from test file", { test_that("rename paths in test file", { create_local_package() - local_mocked_bindings(challenge_uncommitted_changes = \(...) invisible()) + local_mocked_bindings(challenge_uncommitted_changes = function(...) invisible()) git_init() use_testthat()