diff options
Diffstat (limited to 'packages/gitbook-asciidoc/test/page.js')
-rwxr-xr-x | packages/gitbook-asciidoc/test/page.js | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/packages/gitbook-asciidoc/test/page.js b/packages/gitbook-asciidoc/test/page.js index 3a28c5f..cd7a29a 100755 --- a/packages/gitbook-asciidoc/test/page.js +++ b/packages/gitbook-asciidoc/test/page.js @@ -1,18 +1,18 @@ -var fs = require('fs'); -var path = require('path'); -var assert = require('assert'); +const fs = require('fs'); +const path = require('path'); +const expect = require('expect'); -var page = require('../').page; +const page = require('../src').page; -describe('Page parsing', function() { - var LEXED; +describe('Page parsing', () => { + let LEXED; - before(function() { - var CONTENT = fs.readFileSync(path.join(__dirname, './fixtures/PAGE.adoc'), 'utf8'); + before(() => { + const CONTENT = fs.readFileSync(path.join(__dirname, './fixtures/PAGE.adoc'), 'utf8'); LEXED = page(CONTENT); }); - it('should gen content', function() { - assert(LEXED.content); + it('should gen content', () => { + expect(LEXED.content).toExist(); }); }); |