summaryrefslogtreecommitdiffstats
path: root/packages/gitbook-html/test
diff options
context:
space:
mode:
Diffstat (limited to 'packages/gitbook-html/test')
-rw-r--r--packages/gitbook-html/test/helper.js2
-rwxr-xr-xpackages/gitbook-html/test/langs.js4
-rwxr-xr-xpackages/gitbook-html/test/summary.js16
3 files changed, 11 insertions, 11 deletions
diff --git a/packages/gitbook-html/test/helper.js b/packages/gitbook-html/test/helper.js
index 44cfb24..1e310f7 100644
--- a/packages/gitbook-html/test/helper.js
+++ b/packages/gitbook-html/test/helper.js
@@ -1,6 +1,6 @@
var assert = require("assert");
global.assertObjectsEqual = function(o1, o2) {
- assert.equal(JSON.stringify(o1, null, 4), JSON.stringify(o2, null, 4));
+ assert.equal(JSON.stringify(o1, null, 4), JSON.stringify(o2, null, 4));
};
diff --git a/packages/gitbook-html/test/langs.js b/packages/gitbook-html/test/langs.js
index 6b5e00b..ab002a1 100755
--- a/packages/gitbook-html/test/langs.js
+++ b/packages/gitbook-html/test/langs.js
@@ -13,10 +13,10 @@ describe('Languages parsing', function () {
});
it('should detect paths and titles', function() {
- 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-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() {