diff options
-rw-r--r-- | test/books/structure/README.adoc | 1 | ||||
-rw-r--r-- | test/books/structure/README.md | 1 | ||||
-rw-r--r-- | test/books/structure/SUMMARY.md | 1 | ||||
-rw-r--r-- | test/books/structure/book.json | 5 | ||||
-rw-r--r-- | test/structure.js | 8 |
5 files changed, 16 insertions, 0 deletions
diff --git a/test/books/structure/README.adoc b/test/books/structure/README.adoc new file mode 100644 index 0000000..354647f --- /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 0000000..94f18a8 --- /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 0000000..ac9323c --- /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 0000000..110e0ba --- /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 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'); + }); + }); +}); |