diff options
author | Samy Pesse <samypesse@gmail.com> | 2016-04-30 22:06:16 +0200 |
---|---|---|
committer | Samy Pesse <samypesse@gmail.com> | 2016-04-30 22:06:16 +0200 |
commit | c1d53ec11fbe085932df911bda5686b7bf671f53 (patch) | |
tree | 97ae6db641eb79ec9b061af136a0b2e3c549db55 /test/langs.js | |
parent | 36b49c66c6b75515bc84dd678fd52121a313e8d2 (diff) | |
download | gitbook-c1d53ec11fbe085932df911bda5686b7bf671f53.zip gitbook-c1d53ec11fbe085932df911bda5686b7bf671f53.tar.gz gitbook-c1d53ec11fbe085932df911bda5686b7bf671f53.tar.bz2 |
Switch parsers to a model
Diffstat (limited to 'test/langs.js')
-rw-r--r-- | test/langs.js | 46 |
1 files changed, 0 insertions, 46 deletions
diff --git a/test/langs.js b/test/langs.js deleted file mode 100644 index dbde992..0000000 --- a/test/langs.js +++ /dev/null @@ -1,46 +0,0 @@ -var mock = require('./mock'); - -describe('Langs', function() { - it('should parse empty langs', function() { - return mock.setupDefaultBook({ - 'LANGS.md': '' - }) - .then(function(book) { - return book.prepareConfig() - - .then(function() { - return book.langs.load(); - }) - - .then(function() { - book.langs.count().should.equal(0); - }); - }); - }); - - describe('Non-empty languages list', function() { - var book; - - before(function() { - return mock.setupDefaultBook({ - 'LANGS.md': '# Languages\n\n' - + '* [en](./en)\n' - + '* [fr](./fr)\n\n' - }) - .then(function(_book) { - book = _book; - - return book.langs.load(); - }); - }); - - it('should correctly count languages', function() { - book.langs.count().should.equal(2); - }); - - it('should correctly define book as multilingual', function() { - book.isMultilingual().should.equal(true); - }); - }); -}); - |