Skip to content

Commit

Permalink
update snapshot test
Browse files Browse the repository at this point in the history
  • Loading branch information
t-kalinowski committed Nov 4, 2024
1 parent 2441c33 commit dfe6eec
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
7 changes: 3 additions & 4 deletions tests/testthat/_snaps/constructor.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,8 @@
# package exported classes are not inlined in constructor formals

Code
formals(Bar)
args(Bar)
Output
$foo
pkgname::Foo()
function (foo = pkgname::Foo())
NULL

2 changes: 1 addition & 1 deletion tests/testthat/test-constructor.R
Original file line number Diff line number Diff line change
Expand Up @@ -202,5 +202,5 @@ test_that("package exported classes are not inlined in constructor formals", {
quote(pkgname::Foo())
)

expect_snapshot(formals(Bar))
expect_snapshot(args(Bar))
})

0 comments on commit dfe6eec

Please sign in to comment.