diff options
author | Ian Kronquist <iankronquist@gmail.com> | 2016-04-03 16:23:23 -0700 |
---|---|---|
committer | Jeremiah Senkpiel <fishrock123@rocketmail.com> | 2016-05-03 20:20:33 -0400 |
commit | 66903f6695dfca1e9e9d6365ea83aea578d9b28b (patch) | |
tree | c1a82564416653f71fb021384055f25ca1b6cf15 /test/fixtures | |
parent | 3f608b16a7d7036b0bfaa3fc93a7c0182b278581 (diff) | |
download | node-new-66903f6695dfca1e9e9d6365ea83aea578d9b28b.tar.gz |
tools: add tests for the doctool
* Test the toHTML function in html.js. Check that given valid markdown
it produces the expected html. One test case will prevent regressions
of #5873.
* Check that when given valid markdown toJSON produces valid JSON with
the expected schema.
* Add doctool to the list of built in tests so it runs in CI.
PR-URL: https://github.com/nodejs/node/pull/6031
Fixes: https://github.com/nodejs/node/issues/5955
Reviewed-By: Roman Reiss <me@silverwind.io>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Diffstat (limited to 'test/fixtures')
-rw-r--r-- | test/fixtures/order_of_end_tags_5873.md | 6 | ||||
-rw-r--r-- | test/fixtures/sample_document.md | 8 |
2 files changed, 14 insertions, 0 deletions
diff --git a/test/fixtures/order_of_end_tags_5873.md b/test/fixtures/order_of_end_tags_5873.md new file mode 100644 index 0000000000..3eb7dadcb3 --- /dev/null +++ b/test/fixtures/order_of_end_tags_5873.md @@ -0,0 +1,6 @@ +# Title + +## Subsection + +### Class Method: Buffer.from(array) +* `array` {Array} diff --git a/test/fixtures/sample_document.md b/test/fixtures/sample_document.md new file mode 100644 index 0000000000..d1ba308b6d --- /dev/null +++ b/test/fixtures/sample_document.md @@ -0,0 +1,8 @@ +# Sample Markdown + +## Seussian Rhymes +1. fish +2. fish + +* Red fish +* Blue fish |