fixture |
---|
fixtures/path.js |
Note: this page is a fully executable spec for the options it demonstrates. If you are reading this on GitHub, it will render the page nicely and hide all the technical details, so check out the raw markdown to see the actual test configuration.
Appraise allows you to describe complex example structures in several ways that are nice and readable. Similar to how Github uses the first word of a fenced code block to signal the language, Appraise uses the same indicator for the format. This means that your markdown pages will render nicely in when viewed through Github.
Start with ~~~yaml
, such as in the example below:
width: 100
height: 100
path: M10,10L90,90M90,10L10,90
color: blue
Start with ~~~json
, such as in the example below:
{
"width": 100,
"height": 100,
"path": "M10,10L90,90M90,10L10,90",
"color": "green"
}
If no special format is set, the text of the example is passed to your fixture
M10,10L90,90M90,10L10,90
To add more formats, submit a patch to util/parse.js.