Skip to content

Commit 992ef59

Browse files
committed
Deploying to gh-pages from @ 67c09c7 🚀
1 parent de2b31b commit 992ef59

8 files changed

Lines changed: 14 additions & 14 deletions

File tree

dev/articles/mocking.html

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dev/articles/mocking.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ function to mock.
292292
``` r
293293
unix_time <- function() unclass(Sys.time())
294294
unix_time()
295-
#> [1] 1768230224
295+
#> [1] 1769017789
296296
```
297297

298298
Now I’m going to create a function factory that makes it easy to compute
@@ -309,7 +309,7 @@ elapsed <- function() {
309309
timer <- elapsed()
310310
Sys.sleep(0.5)
311311
timer()
312-
#> [1] 0.5019276
312+
#> [1] 0.5019662
313313
```
314314

315315
Imagine trying to test this function without mocking! You’d probably

dev/articles/snapshotting.html

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dev/articles/snapshotting.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -386,7 +386,7 @@ test_that("generates actionable error message", {
386386
#> safe_write_lines(letters, path)
387387
#> Condition
388388
#> Error in `safe_write_lines()`:
389-
#> ! '/tmp/RtmpsmHimx/file294116c786a' already exists.
389+
#> ! '/tmp/Rtmp9YVAJl/file295412ae83f3' already exists.
390390
#> i Set `overwrite = TRUE` to overwrite
391391
#> Test passed with 1 success 🎊.
392392
```
@@ -402,8 +402,8 @@ test_that("generates actionable error message", {
402402
#> safe_write_lines(letters, path)
403403
#> Condition
404404
#> Error in `safe_write_lines()`:
405-
#> - ! '/tmp/RtmpsmHimx/file294116c786a' already exists.
406-
#> + ! '/tmp/RtmpsmHimx/file29416a688e29' already exists.
405+
#> - ! '/tmp/Rtmp9YVAJl/file295412ae83f3' already exists.
406+
#> + ! '/tmp/Rtmp9YVAJl/file29546e71d092' already exists.
407407
#> i Set `overwrite = TRUE` to overwrite
408408
#> * Run `testthat::snapshot_accept("snapshotting.Rmd")` to accept the change.
409409
#> * Run `testthat::snapshot_review("snapshotting.Rmd")` to review the change.

dev/pkgdown.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ articles:
1111
special-files: special-files.html
1212
test-fixtures: test-fixtures.html
1313
third-edition: third-edition.html
14-
last_built: 2026-01-12T15:03Z
14+
last_built: 2026-01-21T17:49Z
1515
urls:
1616
reference: https://testthat.r-lib.org/reference
1717
article: https://testthat.r-lib.org/articles

dev/reference/expect_snapshot_file.html

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dev/reference/expect_snapshot_file.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ save_png <- function(code, width = 400, height = 400) {
129129
}
130130
path <- save_png(plot(1:5))
131131
path
132-
#> [1] "/tmp/Rtmp8o1IVK/file1be142970e50.png"
132+
#> [1] "/tmp/RtmpQ2CpnJ/file1bfc334bac73.png"
133133

134134
if (FALSE) { # \dontrun{
135135
expect_snapshot_file(save_png(hist(mtcars$mpg)), "plot.png")

dev/search.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)