summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorSamy Pessé <samypesse@gmail.com>2016-02-11 11:53:32 +0100
committerSamy Pessé <samypesse@gmail.com>2016-02-11 11:53:32 +0100
commit02cff8c72ca742cd06a65d171657eb230eedbc5b (patch)
treea56125291f2fbb8a54d3e68210818133e53701fd /test
parenta67993ac0b08665502c67d9852124d17d66f4072 (diff)
downloadgitbook-02cff8c72ca742cd06a65d171657eb230eedbc5b.zip
gitbook-02cff8c72ca742cd06a65d171657eb230eedbc5b.tar.gz
gitbook-02cff8c72ca742cd06a65d171657eb230eedbc5b.tar.bz2
Add base for page parsing
Diffstat (limited to 'test')
-rw-r--r--test/output-json.js16
1 files changed, 13 insertions, 3 deletions
diff --git a/test/output-json.js b/test/output-json.js
index ee345e2..b2387a7 100644
--- a/test/output-json.js
+++ b/test/output-json.js
@@ -1,11 +1,21 @@
var mock = require('./mock');
describe('JSON Output', function() {
- it('should correctly generate a default book', function() {
- return mock.outputDefaultBook('json')
- .then(function(output) {
+
+ describe('Sample book', function() {
+ var output;
+
+ before(function() {
+ return mock.outputDefaultBook('json')
+ .then(function(_output) {
+ output = _output;
+ });
+ });
+
+ it('should correctly generate a README.json', function() {
output.should.have.file('README.json');
});
+
});
});