diff options
author | Samy Pessé <samypesse@gmail.com> | 2016-12-22 12:31:22 +0100 |
---|---|---|
committer | Samy Pessé <samypesse@gmail.com> | 2016-12-22 12:31:22 +0100 |
commit | eb0bf31baa6cb903ba4242ae5a3866ff67aeb97c (patch) | |
tree | e2347c9e8c58dd3c2681a6028b5f8d69c40d4e04 /packages/gitbook-asciidoc/test/readme.js | |
parent | 1c1e58b8641cac34b5f3d7c05951f507557fcb1a (diff) | |
download | gitbook-eb0bf31baa6cb903ba4242ae5a3866ff67aeb97c.zip gitbook-eb0bf31baa6cb903ba4242ae5a3866ff67aeb97c.tar.gz gitbook-eb0bf31baa6cb903ba4242ae5a3866ff67aeb97c.tar.bz2 |
Import gitbook-asciidoc
Diffstat (limited to 'packages/gitbook-asciidoc/test/readme.js')
-rwxr-xr-x | packages/gitbook-asciidoc/test/readme.js | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/packages/gitbook-asciidoc/test/readme.js b/packages/gitbook-asciidoc/test/readme.js index 2f4f601..e6a8009 100755 --- a/packages/gitbook-asciidoc/test/readme.js +++ b/packages/gitbook-asciidoc/test/readme.js @@ -1,30 +1,30 @@ -var fs = require('fs'); -var path = require('path'); -var assert = require('assert'); +const fs = require('fs'); +const path = require('path'); +const assert = require('assert'); -var readme = require('../').readme; +const readme = require('../src').readme; -describe('Readme parsing', function () { - var LEXED; +describe('Readme parsing', () => { + let LEXED; - before(function() { - var CONTENT = fs.readFileSync(path.join(__dirname, './fixtures/README.adoc'), 'utf8'); + before(() => { + const CONTENT = fs.readFileSync(path.join(__dirname, './fixtures/README.adoc'), 'utf8'); LEXED = readme(CONTENT); }); - it('should contain a title', function() { + it('should contain a title', () => { assert(LEXED.title); }); - it('should contain a description', function() { + it('should contain a description', () => { assert(LEXED.description); }); - it('should extract the right title', function() { - assert.equal(LEXED.title, "This is the title"); + it('should extract the right title', () => { + assert.equal(LEXED.title, 'This is the title'); }); - it('should extract the right description', function() { - assert.equal(LEXED.description, "This is the book description."); + it('should extract the right description', () => { + assert.equal(LEXED.description, 'This is the book description.'); }); }); |