diff options
author | Samy Pessé <samypesse@gmail.com> | 2015-02-12 09:45:19 +0100 |
---|---|---|
committer | Samy Pessé <samypesse@gmail.com> | 2016-12-22 11:46:19 +0100 |
commit | bdefd1ed4ec3557e5699a7413cadd572badb9fd2 (patch) | |
tree | c77211a9b1be77c57c3ca3ece01e7b23e265adb6 /packages/gitbook-asciidoc/test | |
parent | b820c745277849d44035011d956ab4c28be93fc5 (diff) | |
download | gitbook-bdefd1ed4ec3557e5699a7413cadd572badb9fd2.zip gitbook-bdefd1ed4ec3557e5699a7413cadd572badb9fd2.tar.gz gitbook-bdefd1ed4ec3557e5699a7413cadd572badb9fd2.tar.bz2 |
Convert tabs to spaces
Diffstat (limited to 'packages/gitbook-asciidoc/test')
-rwxr-xr-x | packages/gitbook-asciidoc/test/glossary.js | 4 | ||||
-rw-r--r-- | packages/gitbook-asciidoc/test/helper.js | 2 | ||||
-rwxr-xr-x | packages/gitbook-asciidoc/test/page.js | 16 |
3 files changed, 11 insertions, 11 deletions
diff --git a/packages/gitbook-asciidoc/test/glossary.js b/packages/gitbook-asciidoc/test/glossary.js index aab73e1..529bfba 100755 --- a/packages/gitbook-asciidoc/test/glossary.js +++ b/packages/gitbook-asciidoc/test/glossary.js @@ -19,7 +19,7 @@ describe('Glossary parsing', function () { }); it('should correctly convert it to text', function() { - var text = glossary.toText(LEXED); - assertObjectsEqual(glossary(text), LEXED); + var text = glossary.toText(LEXED); + assertObjectsEqual(glossary(text), LEXED); }); }); diff --git a/packages/gitbook-asciidoc/test/helper.js b/packages/gitbook-asciidoc/test/helper.js index 1e310f7..44cfb24 100644 --- a/packages/gitbook-asciidoc/test/helper.js +++ b/packages/gitbook-asciidoc/test/helper.js @@ -1,6 +1,6 @@ var assert = require("assert"); global.assertObjectsEqual = function(o1, o2) { - assert.equal(JSON.stringify(o1, null, 4), JSON.stringify(o2, null, 4)); + assert.equal(JSON.stringify(o1, null, 4), JSON.stringify(o2, null, 4)); }; diff --git a/packages/gitbook-asciidoc/test/page.js b/packages/gitbook-asciidoc/test/page.js index 9579725..f81f97d 100755 --- a/packages/gitbook-asciidoc/test/page.js +++ b/packages/gitbook-asciidoc/test/page.js @@ -5,18 +5,18 @@ var assert = require('assert'); var page = require('../').page; function loadPage (name, options) { - var CONTENT = fs.readFileSync(path.join(__dirname, './fixtures/' + name + '.adoc'), 'utf8'); - return page(CONTENT, options).sections; + var CONTENT = fs.readFileSync(path.join(__dirname, './fixtures/' + name + '.adoc'), 'utf8'); + return page(CONTENT, options).sections; } var LEXED = loadPage('PAGE'); describe('Page parsing', function() { - it('should detect sections', function() { - assert.equal(LEXED.length, 1); - }); + it('should detect sections', function() { + assert.equal(LEXED.length, 1); + }); - it('should gen content for normal sections', function() { - assert(LEXED[0].content); - }); + it('should gen content for normal sections', function() { + assert(LEXED[0].content); + }); }); |