diff options
author | Samy Pessé <samypesse@gmail.com> | 2015-01-19 09:47:36 +0100 |
---|---|---|
committer | Samy Pessé <samypesse@gmail.com> | 2015-01-19 09:47:36 +0100 |
commit | ec586dd3cdf06e9567f5d3e4961022ddc3c94778 (patch) | |
tree | cc7825ab73110b4e6fbedee404427b052edffa17 /test/readme.js | |
parent | 80432161708357bdcf0e00533d9e6d327636dab6 (diff) | |
download | gitbook-ec586dd3cdf06e9567f5d3e4961022ddc3c94778.zip gitbook-ec586dd3cdf06e9567f5d3e4961022ddc3c94778.tar.gz gitbook-ec586dd3cdf06e9567f5d3e4961022ddc3c94778.tar.bz2 |
Clear folder
Diffstat (limited to 'test/readme.js')
-rw-r--r-- | test/readme.js | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/test/readme.js b/test/readme.js deleted file mode 100644 index 811591c..0000000 --- a/test/readme.js +++ /dev/null @@ -1,28 +0,0 @@ -var fs = require('fs'); -var path = require('path'); -var assert = require('assert'); - -var readme = require('../').parse.readme; - - -var CONTENT = fs.readFileSync(path.join(__dirname, './fixtures/README.md'), 'utf8'); -var LEXED = readme(CONTENT); - -describe('Readme parsing', function () { - - it('should contain a title', function() { - assert(LEXED.title); - }); - - it('should contain a description', function() { - assert(LEXED.description); - }); - - it('should extract the right title', function() { - assert.equal(LEXED.title, "This is the title"); - }); - - it('should extract the right description', function() { - assert.equal(LEXED.description, "This is the book description."); - }); -}); |