Add more test for quiz (related to #100)

This commit is contained in:
Samy Pessé
2014-04-16 17:15:43 +02:00
parent c9eb27bfe7
commit 413dc5d004
2 changed files with 16 additions and 0 deletions
+15
View File
@@ -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.
---
+1
View File
@@ -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() {