summaryrefslogtreecommitdiffstats
path: root/packages/gitbook-markdown/test
diff options
context:
space:
mode:
Diffstat (limited to 'packages/gitbook-markdown/test')
-rw-r--r--packages/gitbook-markdown/test/langs.js4
-rw-r--r--packages/gitbook-markdown/test/summary.js16
2 files changed, 10 insertions, 10 deletions
diff --git a/packages/gitbook-markdown/test/langs.js b/packages/gitbook-markdown/test/langs.js
index bb75d11..3c2f108 100644
--- a/packages/gitbook-markdown/test/langs.js
+++ b/packages/gitbook-markdown/test/langs.js
@@ -14,10 +14,10 @@ describe('Languages parsing', function () {
it('should detect paths and titles', function() {
assert.equal(LEXED.length, 2);
- 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-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() {