summaryrefslogtreecommitdiffstats
path: root/test/page.js
diff options
context:
space:
mode:
authorAaron O'Mullan <aaron.omullan@friendco.de>2014-03-31 14:59:58 -0700
committerAaron O'Mullan <aaron.omullan@friendco.de>2014-03-31 15:00:03 -0700
commit8e22d80c7c4ba34aab39d645a57e2f70b666fdb7 (patch)
tree20556d1cd4ee9ff4ce80ae2162462bdacc60e5b6 /test/page.js
parent82b99189b1358424a9c2a622351961caa35cb764 (diff)
downloadgitbook-8e22d80c7c4ba34aab39d645a57e2f70b666fdb7.zip
gitbook-8e22d80c7c4ba34aab39d645a57e2f70b666fdb7.tar.gz
gitbook-8e22d80c7c4ba34aab39d645a57e2f70b666fdb7.tar.bz2
Add content & code generation for exercise sections
Diffstat (limited to 'test/page.js')
-rw-r--r--test/page.js9
1 files changed, 8 insertions, 1 deletions
diff --git a/test/page.js b/test/page.js
index 831d8b1..082cda6 100644
--- a/test/page.js
+++ b/test/page.js
@@ -21,7 +21,14 @@ describe('Page parsing', function() {
it('should gen content for normal sections', function() {
assert(LEXED[0].content);
- assert(!LEXED[1].content);
assert(LEXED[2].content);
});
+
+ it('should gen code and content for exercise sections', function() {
+ assert(LEXED[1].content);
+ assert(LEXED[1].code);
+ assert(LEXED[1].code.base);
+ assert(LEXED[1].code.solution);
+ assert(LEXED[1].code.validation);
+ });
});