summaryrefslogtreecommitdiffstats
path: root/test/page.js
diff options
context:
space:
mode:
authorAaron O'Mullan <aaron.omullan@friendco.de>2014-10-13 14:17:08 +0200
committerAaron O'Mullan <aaron.omullan@friendco.de>2014-10-13 14:17:08 +0200
commitffb0b1201268134ca697723b473ec74c010442d3 (patch)
tree0e6b03c91bd7552150c73eeab46fb819c0e9227d /test/page.js
parent78e25f8252a2eaa91bbd6a6bd0377e11aa629a10 (diff)
downloadgitbook-ffb0b1201268134ca697723b473ec74c010442d3.zip
gitbook-ffb0b1201268134ca697723b473ec74c010442d3.tar.gz
gitbook-ffb0b1201268134ca697723b473ec74c010442d3.tar.bz2
Add unit test for quiz false positivies
Diffstat (limited to 'test/page.js')
-rw-r--r--test/page.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/page.js b/test/page.js
index 42243d8..2c59753 100644
--- a/test/page.js
+++ b/test/page.js
@@ -122,3 +122,11 @@ describe('Relative images', function() {
assert(LEXED[0].content.indexOf('"preview2.png"') !== -1);
});
});
+
+describe('Section parsing', function() {
+ it('should not have false positive quiz parsing', function() {
+ var LEXED = loadPage('FALSE_QUIZ');
+
+ assert.not.equal(LEXED[0].type, 'quiz');
+ });
+});