diff options
author | Samy Pesse <samypesse@gmail.com> | 2016-10-12 12:17:34 +0200 |
---|---|---|
committer | Samy Pesse <samypesse@gmail.com> | 2016-10-12 12:17:34 +0200 |
commit | b4dd3e1ddc4321d85ed2c579d3c2df494f9d23e9 (patch) | |
tree | e64d78545a5284c40eeb3307d005b6bed3918c0d | |
parent | 4b6fc0ae2f1bf684abf5b06caf6ac5cb3c796c6b (diff) | |
download | gitbook-b4dd3e1ddc4321d85ed2c579d3c2df494f9d23e9.zip gitbook-b4dd3e1ddc4321d85ed2c579d3c2df494f9d23e9.tar.gz gitbook-b4dd3e1ddc4321d85ed2c579d3c2df494f9d23e9.tar.bz2 |
Adapt test for plugins.findForBook
-rw-r--r-- | packages/gitbook/src/plugins/__tests__/findForBook.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/packages/gitbook/src/plugins/__tests__/findForBook.js b/packages/gitbook/src/plugins/__tests__/findForBook.js index 41df77e..0d12aa1 100644 --- a/packages/gitbook/src/plugins/__tests__/findForBook.js +++ b/packages/gitbook/src/plugins/__tests__/findForBook.js @@ -4,16 +4,16 @@ const Book = require('../../models/book'); const createNodeFS = require('../../fs/node'); const findForBook = require('../findForBook'); -describe('findForBook', function() { +describe('findForBook', () => { const fs = createNodeFS( path.resolve(__dirname, '../../..') ); const book = Book.createForFS(fs); - it('should list default plugins', function() { + it('should list default plugins', () => { return findForBook(book) - .then(function(plugins) { - expect(plugins.has('fontsettings')).toBeTruthy(); + .then((plugins) => { + expect(plugins.has('theme-default')).toBeTruthy(); }); }); }); |