summaryrefslogtreecommitdiffstats
path: root/packages/gitbook-asciidoc
diff options
context:
space:
mode:
Diffstat (limited to 'packages/gitbook-asciidoc')
-rwxr-xr-xpackages/gitbook-asciidoc/package.json45
-rwxr-xr-xpackages/gitbook-asciidoc/test/summary.js2
2 files changed, 23 insertions, 24 deletions
diff --git a/packages/gitbook-asciidoc/package.json b/packages/gitbook-asciidoc/package.json
index 0647794..ab34f67 100755
--- a/packages/gitbook-asciidoc/package.json
+++ b/packages/gitbook-asciidoc/package.json
@@ -1,25 +1,24 @@
{
- "name": "gitbook-asciidoc",
- "version": "1.2.2",
- "homepage": "https://www.gitbook.com",
- "description": "Parse AsciiDoc content for gitbook",
- "main": "lib/index.js",
- "dependencies": {
- "lodash": "^4.13.1",
- "asciidoctor.js": "1.5.5-4",
- "gitbook-html": "1.3.3"
- },
- "scripts": {
- "test": "mocha --reporter list --bail --compilers js:babel-register",
- "prepublish": "rm -rf lib/ && babel -d lib/ src/ --source-maps"
- },
- "repository": {
- "type": "git",
- "url": "https://github.com/GitbookIO/gitbook.git"
- },
- "author": "GitBook Inc. <contact@gitbook.com>",
- "license": "Apache-2.0",
- "bugs": {
- "url": "https://github.com/GitbookIO/gitbook/issues"
- }
+ "name": "gitbook-asciidoc",
+ "version": "4.0.0",
+ "homepage": "https://www.gitbook.com",
+ "description": "Parse AsciiDoc content for gitbook",
+ "main": "lib/index.js",
+ "dependencies": {
+ "asciidoctor.js": "1.5.5-4",
+ "gitbook-html": "4.0.0"
+ },
+ "scripts": {
+ "test": "mocha --reporter list --bail --compilers js:babel-register",
+ "prepublish": "rm -rf lib/ && babel -d lib/ src/ --source-maps"
+ },
+ "repository": {
+ "type": "git",
+ "url": "https://github.com/GitbookIO/gitbook.git"
+ },
+ "author": "GitBook Inc. <contact@gitbook.com>",
+ "license": "Apache-2.0",
+ "bugs": {
+ "url": "https://github.com/GitbookIO/gitbook/issues"
+ }
}
diff --git a/packages/gitbook-asciidoc/test/summary.js b/packages/gitbook-asciidoc/test/summary.js
index ffd0bc0..7197df6 100755
--- a/packages/gitbook-asciidoc/test/summary.js
+++ b/packages/gitbook-asciidoc/test/summary.js
@@ -33,7 +33,7 @@ describe('Summary parsing', () => {
expect(PART.articles[1].ref).toExist();
expect(PART.articles[2].ref).toExist();
expect(PART.articles[3].ref).toExist();
- expect(PART.articles[4].ref).toBe(null);
+ expect(PART.articles[4].ref).toNotExist();
expect(PART.articles[0].title).toExist();
expect(PART.articles[1].title).toExist();