summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSamy Pessé <samypesse@gmail.com>2015-09-10 09:56:18 +0200
committerSamy Pessé <samypesse@gmail.com>2015-09-10 09:56:18 +0200
commit14853befdabdcb1cb16f038f7747d5a2e24ee545 (patch)
treeeecf637a11c3f9528879ccb0f3c9f9a8f2fd7732
parente7f2803d115974ebc2f4a0356ca053d3b2b59931 (diff)
downloadgitbook-14853befdabdcb1cb16f038f7747d5a2e24ee545.zip
gitbook-14853befdabdcb1cb16f038f7747d5a2e24ee545.tar.gz
gitbook-14853befdabdcb1cb16f038f7747d5a2e24ee545.tar.bz2
Add test for init with deep summary
-rw-r--r--test/books/init/SUMMARY.md3
-rw-r--r--test/init.js1
2 files changed, 4 insertions, 0 deletions
diff --git a/test/books/init/SUMMARY.md b/test/books/init/SUMMARY.md
index 1e63aed..31c1561 100644
--- a/test/books/init/SUMMARY.md
+++ b/test/books/init/SUMMARY.md
@@ -4,3 +4,6 @@
* [Hello 2](hello2.md)
* Hello 3
* [Hello 4](hello3/hello4.md)
+ * Hello 5
+ * [Hello 6](hello3/hello5/hello6.md)
+
diff --git a/test/init.js b/test/init.js
index 3ba701f..8415b20 100644
--- a/test/init.js
+++ b/test/init.js
@@ -19,5 +19,6 @@ describe('Init Books', function () {
should(fs.existsSync(path.resolve(initRoot, "hello.md"))).be.ok;
should(fs.existsSync(path.resolve(initRoot, "hello2.md"))).be.ok;
should(fs.existsSync(path.resolve(initRoot, "hello3/hello4.md"))).be.ok;
+ should(fs.existsSync(path.resolve(initRoot, "hello3/hello5/hello6.md"))).be.ok;
});
});