diff --git a/tests/testthat/_snaps/demo/demo.md b/tests/testthat/_snaps/demo/demo.md index 84c20df49..328b3664f 100644 --- a/tests/testthat/_snaps/demo/demo.md +++ b/tests/testthat/_snaps/demo/demo.md @@ -127,7 +127,7 @@ An initial NEWS file can be created with `usethis::use_news_md()`. ```r usethis::use_news_md() -## v Writing 'NEWS.md'. +## v Writing 'NEWS.md' ``` Let's take a look at the contents: @@ -170,7 +170,7 @@ We start by creating the new R file called `cup.R` and adding code (well only a ```r usethis::use_r("cup") -## [ ] Edit 'R/cup.R'. +## * Edit 'R/cup.R' writeLines("# cup", "R/cup.R") ``` @@ -206,12 +206,12 @@ The code in `cup.R` warrants a test (at least it would if it were actual code!): ```r usethis::use_test("cup") -## v Adding testthat to 'Suggests' field in DESCRIPTION. -## v Adding "3" to 'Config/testthat/edition'. -## v Creating 'tests/testthat/'. -## v Writing 'tests/testthat.R'. -## v Writing 'tests/testthat/test-cup.R'. -## [ ] Edit 'tests/testthat/test-cup.R'. +## v Adding 'testthat' to Suggests field in DESCRIPTION +## v Adding '3' to Config/testthat/edition +## v Creating 'tests/testthat/' +## v Writing 'tests/testthat.R' +## v Writing 'tests/testthat/test-cup.R' +## * Edit 'tests/testthat/test-cup.R' cat(readLines("tests/testthat/test-cup.R"), sep = "\n") ## test_that("multiplication works", { ## expect_equal(2 * 2, 4) @@ -413,8 +413,8 @@ This time we write the tests first, test-driven development. ```r usethis::use_test("bowl") -## v Writing 'tests/testthat/test-bowl.R'. -## [ ] Edit 'tests/testthat/test-bowl.R'. +## v Writing 'tests/testthat/test-bowl.R' +## * Edit 'tests/testthat/test-bowl.R' ``` @@ -427,7 +427,7 @@ gert::git_commit("Add bowl tests.") ```r usethis::use_r("bowl") -## [ ] Edit 'R/bowl.R'. +## * Edit 'R/bowl.R' writeLines("# bowl of tea", "R/bowl.R") ```