summaryrefslogtreecommitdiffstats
path: root/packages/gitbook-markdown/test/summary.js
diff options
context:
space:
mode:
authorSamy Pessé <samypesse@gmail.com>2016-05-02 16:14:39 +0200
committerSamy Pessé <samypesse@gmail.com>2016-12-22 15:00:55 +0100
commitb918cbcb0305bb5269d5a7ee7513b4e32317677b (patch)
tree85430e1258b026ce433899ab4f86811a8b24c71f /packages/gitbook-markdown/test/summary.js
parent157446e9286e0ccab6cea1924e22f696c4ebc698 (diff)
downloadgitbook-b918cbcb0305bb5269d5a7ee7513b4e32317677b.zip
gitbook-b918cbcb0305bb5269d5a7ee7513b4e32317677b.tar.gz
gitbook-b918cbcb0305bb5269d5a7ee7513b4e32317677b.tar.bz2
Adapt for gitbook-html@1.1.0
Diffstat (limited to 'packages/gitbook-markdown/test/summary.js')
-rw-r--r--packages/gitbook-markdown/test/summary.js16
1 files changed, 8 insertions, 8 deletions
diff --git a/packages/gitbook-markdown/test/summary.js b/packages/gitbook-markdown/test/summary.js
index 22800d4..31dbff9 100644
--- a/packages/gitbook-markdown/test/summary.js
+++ b/packages/gitbook-markdown/test/summary.js
@@ -32,11 +32,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);
@@ -46,9 +46,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 part parts', function() {