summaryrefslogtreecommitdiffstats
path: root/packages/gitbook-html/test/summary.js
diff options
context:
space:
mode:
authorSamy Pessé <samypesse@gmail.com>2016-05-02 16:12:07 +0200
committerSamy Pessé <samypesse@gmail.com>2016-12-22 12:32:17 +0100
commitc3a417a9834ba3c25ceb20a3cb650fa0384c60d0 (patch)
treebdbffac34a15636265e834b9bf0c484054426135 /packages/gitbook-html/test/summary.js
parent9e88003d7373e2e7efac862494a9a0db4847f617 (diff)
downloadgitbook-c3a417a9834ba3c25ceb20a3cb650fa0384c60d0.zip
gitbook-c3a417a9834ba3c25ceb20a3cb650fa0384c60d0.tar.gz
gitbook-c3a417a9834ba3c25ceb20a3cb650fa0384c60d0.tar.bz2
Adapt for gitbook v3
Diffstat (limited to 'packages/gitbook-html/test/summary.js')
-rwxr-xr-xpackages/gitbook-html/test/summary.js16
1 files changed, 8 insertions, 8 deletions
diff --git a/packages/gitbook-html/test/summary.js b/packages/gitbook-html/test/summary.js
index 02104cd..24d22c0 100755
--- a/packages/gitbook-html/test/summary.js
+++ b/packages/gitbook-html/test/summary.js
@@ -40,11 +40,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);
@@ -54,9 +54,9 @@ describe('Summary parsing', function () {
});
it('should normalize paths from .md', function() {
- assert.equal(PART.articles[0].path,'chapter-1/README.md');
- assert.equal(PART.articles[1].path,'chapter-2/README.md');
- assert.equal(PART.articles[2].path,'chapter-3/README.md');
+ assert.equal(PART.articles[0].ref,'chapter-1/README.md');
+ assert.equal(PART.articles[1].ref,'chapter-2/README.md');
+ assert.equal(PART.articles[2].ref,'chapter-3/README.md');
});
it('should correctly convert it to text', function() {