Skip to content

Commit

Permalink
Use older anonymous function syntax in more places
Browse files Browse the repository at this point in the history
  • Loading branch information
jennybc committed Aug 15, 2024
1 parent 21c4a7d commit b4ed28a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/testthat/test-rename-files.R
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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()
Expand All @@ -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()
Expand All @@ -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()
Expand Down

0 comments on commit b4ed28a

Please sign in to comment.