diff options
author | Samy Pessé <samypesse@gmail.com> | 2014-04-16 17:15:43 +0200 |
---|---|---|
committer | Samy Pessé <samypesse@gmail.com> | 2014-04-16 17:15:45 +0200 |
commit | 413dc5d004179eb9b6fa86da4c4e1a3cc54514d3 (patch) | |
tree | 9c73499ab589c5e1464eabb38c615b866244c0a9 | |
parent | c9eb27bfe7b86987af5b1162804ebe3a8652c57e (diff) | |
download | gitbook-413dc5d004179eb9b6fa86da4c4e1a3cc54514d3.zip gitbook-413dc5d004179eb9b6fa86da4c4e1a3cc54514d3.tar.gz gitbook-413dc5d004179eb9b6fa86da4c4e1a3cc54514d3.tar.bz2 |
Add more test for quiz (related to #100)
-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() { |