summaryrefslogtreecommitdiffstats
path: root/packages/gitbook-asciidoc/test/summary.js
diff options
context:
space:
mode:
authorSamy Pesse <samypesse@gmail.com>2016-06-06 18:05:33 +0200
committerSamy Pessé <samypesse@gmail.com>2016-12-22 11:46:27 +0100
commit8eac1269487bfe3abaa55d2b76b94f38bc66a691 (patch)
tree7b76bf60a3670ac9d43262d2390d7abccf432c24 /packages/gitbook-asciidoc/test/summary.js
parent7a8bbae821dace38dd0db5c4c3c81d1a610495be (diff)
downloadgitbook-8eac1269487bfe3abaa55d2b76b94f38bc66a691.zip
gitbook-8eac1269487bfe3abaa55d2b76b94f38bc66a691.tar.gz
gitbook-8eac1269487bfe3abaa55d2b76b94f38bc66a691.tar.bz2
Update gitbook-html@1.3.1
Diffstat (limited to 'packages/gitbook-asciidoc/test/summary.js')
-rwxr-xr-xpackages/gitbook-asciidoc/test/summary.js16
1 files changed, 8 insertions, 8 deletions
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() {