diff options
-rw-r--r-- | test/fixtures/QUIZ_PAGE.md | 15 | ||||
-rw-r--r-- | test/page.js | 1 |
2 files changed, 16 insertions, 0 deletions
diff --git a/test/fixtures/QUIZ_PAGE.md b/test/fixtures/QUIZ_PAGE.md index 545d083..a076055 100644 --- a/test/fixtures/QUIZ_PAGE.md +++ b/test/fixtures/QUIZ_PAGE.md @@ -31,3 +31,18 @@ Some more nice content .... [Cool stuff](http://gitbook.io) [Link to another Markdown file](./xyz/file.md) + +--- + +Quiz test 2: What does Gitbook support? +- [x] Table-based questions with radio buttons +- [x] Table-based questions with checkboxes +- [ ] Telepathy +- [x] List-based questions with checkboxes +- [x] List-based questions with radio buttons +- [ ] Moon-on-a-stick + +> Gitbook supports table and list based quiz questions using either radio buttons or checkboxes. + +--- + diff --git a/test/page.js b/test/page.js index a8a3770..52a3df6 100644 --- a/test/page.js +++ b/test/page.js @@ -28,6 +28,7 @@ describe('Page parsing', function() { assert.equal(QUIZ_LEXED[0].type, 'normal'); assert.equal(QUIZ_LEXED[1].type, 'quiz'); assert.equal(QUIZ_LEXED[2].type, 'normal'); + assert.equal(QUIZ_LEXED[3].type, 'quiz'); }); it('should gen content for normal sections', function() { |