diff options
author | Samy Pessé <samypesse@gmail.com> | 2015-01-19 22:39:23 +0100 |
---|---|---|
committer | Samy Pessé <samypesse@gmail.com> | 2015-01-19 22:39:23 +0100 |
commit | c15399613cf3e589eb106d37221fae9c54002d74 (patch) | |
tree | 0ae3f7140eccbbbe0a3b156400179acec29a8e0e /test/parsing.js | |
parent | d6f7f1f4fb12ac1c24624aa8358f8149ec720622 (diff) | |
download | gitbook-c15399613cf3e589eb106d37221fae9c54002d74.zip gitbook-c15399613cf3e589eb106d37221fae9c54002d74.tar.gz gitbook-c15399613cf3e589eb106d37221fae9c54002d74.tar.bz2 |
Normalize paths in html content
Diffstat (limited to 'test/parsing.js')
-rw-r--r-- | test/parsing.js | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/test/parsing.js b/test/parsing.js index 477631f..4e76d2c 100644 --- a/test/parsing.js +++ b/test/parsing.js @@ -31,8 +31,7 @@ describe('Book parsing', function () { it('should correctly parse list of files', function() { var FILES = book1.files; - assert.equal(FILES.length, 2); - assert.equal(_.difference(FILES, [ 'intro.md', 'README.md' ]).length, 0); + assert.deepEqual(FILES, [ 'README.md', 'intro.md', 'sub/', 'sub/test1.md' ]); }); it('should correctly parse the languages', function() { @@ -49,7 +48,7 @@ describe('Book parsing', function () { it('should correctly parse the navigation', function() { var NAVIGATION = book1.navigation; - assert.equal(_.size(NAVIGATION), 1); + assert.equal(_.size(NAVIGATION), 2); assert(NAVIGATION["intro.md"]) assert.equal(NAVIGATION["intro.md"].title, "Introduction"); assert.equal(NAVIGATION["intro.md"].prev, null); |