diff options
Diffstat (limited to 'packages/gitbook-asciidoc')
-rwxr-xr-x | packages/gitbook-asciidoc/package.json | 4 | ||||
-rwxr-xr-x | packages/gitbook-asciidoc/test/langs.js | 4 | ||||
-rwxr-xr-x | packages/gitbook-asciidoc/test/summary.js | 16 |
3 files changed, 12 insertions, 12 deletions
diff --git a/packages/gitbook-asciidoc/package.json b/packages/gitbook-asciidoc/package.json index 1f1f5a0..0a514ac 100755 --- a/packages/gitbook-asciidoc/package.json +++ b/packages/gitbook-asciidoc/package.json @@ -5,9 +5,9 @@ "description": "Parse AsciiDoc content for gitbook", "main": "lib/index.js", "dependencies": { - "lodash": "^3.2.0", + "lodash": "^3.2.0 || ^4.13.1", "asciidoctor.js": "1.5.5-1", - "gitbook-html": "1.1.0" + "gitbook-html": "1.3.1" }, "devDependencies": { "mocha": "2.3.2" diff --git a/packages/gitbook-asciidoc/test/langs.js b/packages/gitbook-asciidoc/test/langs.js index 94111e3..52a74c0 100755 --- a/packages/gitbook-asciidoc/test/langs.js +++ b/packages/gitbook-asciidoc/test/langs.js @@ -13,10 +13,10 @@ describe('Languages parsing', function () { }); it('should detect paths and titles', function() { - assert.equal(LEXED[0].path,'en/'); + assert.equal(LEXED[0].ref,'en/'); assert.equal(LEXED[0].title,'English'); - assert.equal(LEXED[1].path,'fr/'); + assert.equal(LEXED[1].ref,'fr/'); assert.equal(LEXED[1].title,'French'); }); diff --git a/packages/gitbook-asciidoc/test/summary.js b/packages/gitbook-asciidoc/test/summary.js index 981967a..d65aadf 100755 --- a/packages/gitbook-asciidoc/test/summary.js +++ b/packages/gitbook-asciidoc/test/summary.js @@ -29,11 +29,11 @@ describe('Summary parsing', function () { }); it('should detect paths and titles', function() { - assert(PART.articles[0].path); - assert(PART.articles[1].path); - assert(PART.articles[2].path); - assert(PART.articles[3].path); - assert.equal(PART.articles[4].path, null); + assert(PART.articles[0].ref); + assert(PART.articles[1].ref); + assert(PART.articles[2].ref); + assert(PART.articles[3].ref); + assert.equal(PART.articles[4].ref, null); assert(PART.articles[0].title); assert(PART.articles[1].title); @@ -43,9 +43,9 @@ describe('Summary parsing', function () { }); it('should normalize paths from .md', function() { - assert.equal(PART.articles[0].path,'chapter-1/README.adoc'); - assert.equal(PART.articles[1].path,'chapter-2/README.adoc'); - assert.equal(PART.articles[2].path,'chapter-3/README.adoc'); + assert.equal(PART.articles[0].ref, 'chapter-1/README.adoc'); + assert.equal(PART.articles[1].ref, 'chapter-2/README.adoc'); + assert.equal(PART.articles[2].ref, 'chapter-3/README.adoc'); }); it('should correctly convert it to text', function() { |