summaryrefslogtreecommitdiffstats
path: root/packages/gitbook-asciidoc/test
diff options
context:
space:
mode:
Diffstat (limited to 'packages/gitbook-asciidoc/test')
-rwxr-xr-xpackages/gitbook-asciidoc/test/glossary.js4
-rw-r--r--packages/gitbook-asciidoc/test/helper.js2
-rwxr-xr-xpackages/gitbook-asciidoc/test/page.js16
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);
+ });
});