diff options
author | Aaron O'Mullan <aaron.omullan@friendco.de> | 2014-03-30 22:51:02 -0700 |
---|---|---|
committer | Aaron O'Mullan <aaron.omullan@friendco.de> | 2014-03-30 22:51:02 -0700 |
commit | 7b4974209b8f05d89363d5431310c452dee98a70 (patch) | |
tree | 772d5a25be92713bc046fd3bea14879c01fb316c | |
parent | c21303c762e0bd019a1fbe54a0b6ec6408dfc685 (diff) | |
download | gitbook-7b4974209b8f05d89363d5431310c452dee98a70.zip gitbook-7b4974209b8f05d89363d5431310c452dee98a70.tar.gz gitbook-7b4974209b8f05d89363d5431310c452dee98a70.tar.bz2 |
Add tests for page content rendering
-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 910685e..160e3d0 100644 --- a/test/page.js +++ b/test/page.js @@ -18,4 +18,10 @@ describe('Page parsing', function() { assert.equal(LEXED[1].type, 'exercise'); assert.equal(LEXED[2].type, 'normal'); }); + + it('should gen content for normal sections', function() { + assert(LEXED[0].content); + assert(!LEXED[1].content); + assert(LEXED[2].content); + }); }); |