diff options
author | Samy Pesse <samypesse@gmail.com> | 2016-04-30 22:06:16 +0200 |
---|---|---|
committer | Samy Pesse <samypesse@gmail.com> | 2016-04-30 22:06:16 +0200 |
commit | c1d53ec11fbe085932df911bda5686b7bf671f53 (patch) | |
tree | 97ae6db641eb79ec9b061af136a0b2e3c549db55 /test/readme.js | |
parent | 36b49c66c6b75515bc84dd678fd52121a313e8d2 (diff) | |
download | gitbook-c1d53ec11fbe085932df911bda5686b7bf671f53.zip gitbook-c1d53ec11fbe085932df911bda5686b7bf671f53.tar.gz gitbook-c1d53ec11fbe085932df911bda5686b7bf671f53.tar.bz2 |
Switch parsers to a model
Diffstat (limited to 'test/readme.js')
-rw-r--r-- | test/readme.js | 43 |
1 files changed, 0 insertions, 43 deletions
diff --git a/test/readme.js b/test/readme.js deleted file mode 100644 index 16aa81a..0000000 --- a/test/readme.js +++ /dev/null @@ -1,43 +0,0 @@ -var mock = require('./mock'); - -describe('Readme', function() { - it('should parse empty readme', function() { - return mock.setupDefaultBook({ - 'README.md': '' - }) - .then(function(book) { - return book.prepareConfig() - - .then(function() { - return book.readme.load(); - }); - }); - }); - - it('should parse readme', function() { - return mock.setupDefaultBook({ - 'README.md': '# Hello World\nThis is my book' - }) - .then(function(book) { - return book.readme.load() - .then(function() { - book.readme.title.should.equal('Hello World'); - book.readme.description.should.equal('This is my book'); - }); - }); - }); - - it('should parse AsciiDoc readme', function() { - return mock.setupBook({ - 'README.adoc': '# Hello World\n\nThis is my book\n' - }) - .then(function(book) { - return book.readme.load() - .then(function() { - book.readme.title.should.equal('Hello World'); - book.readme.description.should.equal('This is my book'); - }); - }); - }); -}); - |