Skip to content

Commit

Permalink
fix header level of last FAQ question (#24)
Browse files Browse the repository at this point in the history
  • Loading branch information
maelle authored and nealrichardson committed Jul 6, 2023
1 parent ebf73ff commit e3edb35
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions vignettes/faq.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ You may also be able to economize on other parts of the file paths. If you've re

Finally, if you have your tests inside a `tests/testthat/` directory, and your fixture files inside that, you can save 9 characters by moving the fixtures up to `tests/` and setting `.mockPaths("../")`.

# Why are mocks stored as text files?
## Why are mocks stored as text files?

Plain-text files have several nice features, particularly relative to storing serialized (binary) R objects. You can more easily confirm that your mocks look correct, and you can more easily maintain them without having to re-record them. When you do edit them, text files are more easily handled by version-control systems like Git. Plain-text files can also have comments, so you can make notes as to why a certain fixture exists, what a particular value means, and so on, which will help the users of your package—and your future self!

Expand Down Expand Up @@ -87,4 +87,4 @@ app.crunch.io/
│   │   └── search-c89aba.json
│   └── users.json
└── api.json
```
```

0 comments on commit e3edb35

Please sign in to comment.