diff --git a/test/books/structure/README.adoc b/test/books/structure/README.adoc new file mode 100644 index 000000000..354647f02 --- /dev/null +++ b/test/books/structure/README.adoc @@ -0,0 +1 @@ +== Readme for the bookk diff --git a/test/books/structure/README.md b/test/books/structure/README.md new file mode 100644 index 000000000..94f18a813 --- /dev/null +++ b/test/books/structure/README.md @@ -0,0 +1 @@ +# Readme for GitHub diff --git a/test/books/structure/SUMMARY.md b/test/books/structure/SUMMARY.md new file mode 100644 index 000000000..ac9323cbc --- /dev/null +++ b/test/books/structure/SUMMARY.md @@ -0,0 +1 @@ +# Summary diff --git a/test/books/structure/book.json b/test/books/structure/book.json new file mode 100644 index 000000000..110e0ba35 --- /dev/null +++ b/test/books/structure/book.json @@ -0,0 +1,5 @@ +{ + "structure": { + "readme": "README.adoc" + } +} \ No newline at end of file diff --git a/test/structure.js b/test/structure.js new file mode 100644 index 000000000..b25a021fb --- /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'); + }); + }); +});