summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSamy Pesse <samypesse@gmail.com>2016-10-12 12:17:34 +0200
committerSamy Pesse <samypesse@gmail.com>2016-10-12 12:17:34 +0200
commitb4dd3e1ddc4321d85ed2c579d3c2df494f9d23e9 (patch)
treee64d78545a5284c40eeb3307d005b6bed3918c0d
parent4b6fc0ae2f1bf684abf5b06caf6ac5cb3c796c6b (diff)
downloadgitbook-b4dd3e1ddc4321d85ed2c579d3c2df494f9d23e9.zip
gitbook-b4dd3e1ddc4321d85ed2c579d3c2df494f9d23e9.tar.gz
gitbook-b4dd3e1ddc4321d85ed2c579d3c2df494f9d23e9.tar.bz2
Adapt test for plugins.findForBook
-rw-r--r--packages/gitbook/src/plugins/__tests__/findForBook.js8
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();
});
});
});