diff options
author | Aaron O'Mullan <aaron.omullan@friendco.de> | 2014-03-30 22:36:08 -0700 |
---|---|---|
committer | Aaron O'Mullan <aaron.omullan@friendco.de> | 2014-03-30 22:36:08 -0700 |
commit | 4c1435f27f7c17ffb8dcdd8c9f0f6b870c3e14ce (patch) | |
tree | 3704b050dd6f0bfd7ffe20cd21fa5b47ee44bfff | |
parent | 0199e5600009989f511169f0bd8300e92fd0fd9b (diff) | |
download | gitbook-4c1435f27f7c17ffb8dcdd8c9f0f6b870c3e14ce.zip gitbook-4c1435f27f7c17ffb8dcdd8c9f0f6b870c3e14ce.tar.gz gitbook-4c1435f27f7c17ffb8dcdd8c9f0f6b870c3e14ce.tar.bz2 |
Test for section types
-rw-r--r-- | test/page.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/page.js b/test/page.js index 9ed91bb..910685e 100644 --- a/test/page.js +++ b/test/page.js @@ -12,4 +12,10 @@ describe('Page parsing', function() { it('should detection sections', function() { assert.equal(LEXED.length, 3); }); + + it('should detection section types', function() { + assert.equal(LEXED[0].type, 'normal'); + assert.equal(LEXED[1].type, 'exercise'); + assert.equal(LEXED[2].type, 'normal'); + }); }); |