summaryrefslogtreecommitdiffstats
path: root/test/structure.js
diff options
context:
space:
mode:
authorSamy Pessé <samypesse@gmail.com>2015-11-16 10:16:52 +0100
committerSamy Pessé <samypesse@gmail.com>2015-11-16 10:16:52 +0100
commitf9df7545ad0d3a0c1fb08e1442fe99cf286cd1cc (patch)
tree602e023a3ff5c660b8f4bc9bc942062443c9c011 /test/structure.js
parent5d907f234e8fe04755714769c3b5b384a6b639b8 (diff)
parent9b7a90afef5a19c97c45339a3ccc4ebc3db36397 (diff)
downloadgitbook-f9df7545ad0d3a0c1fb08e1442fe99cf286cd1cc.zip
gitbook-f9df7545ad0d3a0c1fb08e1442fe99cf286cd1cc.tar.gz
gitbook-f9df7545ad0d3a0c1fb08e1442fe99cf286cd1cc.tar.bz2
Merge pull request #1014 from GitbookIO/fix/1013
Fix #1013: prioritize structure defined in book.json
Diffstat (limited to 'test/structure.js')
-rw-r--r--test/structure.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/structure.js b/test/structure.js
new file mode 100644
index 0000000..b25a021
--- /dev/null
+++ b/test/structure.js
@@ -0,0 +1,8 @@
+describe('Structure', function () {
+ it('should prioritize structure defined in book.json', function() {
+ return books.parse('structure')
+ .then(function(book) {
+ book.readmeFile.should.equal('README.adoc');
+ });
+ });
+});