diff options
author | Samy Pesse <samypesse@gmail.com> | 2016-10-12 14:18:46 +0200 |
---|---|---|
committer | Samy Pesse <samypesse@gmail.com> | 2016-10-12 14:18:46 +0200 |
commit | 5b0622014afe35a7f1eda9a47e2f94710304f8c6 (patch) | |
tree | e19552d7de23ae4ceb0b5862ac9cc6f425e3e368 | |
parent | 7253dbc476ed0fe6724f199a20b55c868774d92a (diff) | |
download | gitbook-5b0622014afe35a7f1eda9a47e2f94710304f8c6.zip gitbook-5b0622014afe35a7f1eda9a47e2f94710304f8c6.tar.gz gitbook-5b0622014afe35a7f1eda9a47e2f94710304f8c6.tar.bz2 |
Adapt test for listDependencies
-rw-r--r-- | packages/gitbook/src/plugins/__tests__/listDependencies.js | 27 |
1 files changed, 14 insertions, 13 deletions
diff --git a/packages/gitbook/src/plugins/__tests__/listDependencies.js b/packages/gitbook/src/plugins/__tests__/listDependencies.js index d30e46c..002f0e9 100644 --- a/packages/gitbook/src/plugins/__tests__/listDependencies.js +++ b/packages/gitbook/src/plugins/__tests__/listDependencies.js @@ -2,37 +2,38 @@ const PluginDependency = require('../../models/pluginDependency'); const listDependencies = require('../listDependencies'); const toNames = require('../toNames'); -describe('listDependencies', function() { - it('must list default', function() { +describe('listDependencies', () => { + it('must list default', () => { const deps = PluginDependency.listFromString('ga,great'); const plugins = listDependencies(deps); const names = toNames(plugins); expect(names).toEqual([ - 'ga', 'great', - 'highlight', 'search', 'lunr', 'sharing', 'fontsettings', - 'theme-default' ]); + 'ga', 'great', 'highlight', 'search', 'lunr', + 'sharing', 'hints', 'headings', 'copy-code', 'theme-default' + ]); }); - it('must list from array with -', function() { + it('must list from array with -', () => { const deps = PluginDependency.listFromString('ga,-great'); const plugins = listDependencies(deps); const names = toNames(plugins); expect(names).toEqual([ - 'ga', - 'highlight', 'search', 'lunr', 'sharing', 'fontsettings', - 'theme-default' ]); + 'ga', 'highlight', 'search', 'lunr', + 'sharing', 'hints', 'headings', + 'copy-code', 'theme-default' + ]); }); - it('must remove default plugins using -', function() { + it('must remove default plugins using -', () => { const deps = PluginDependency.listFromString('ga,-search'); const plugins = listDependencies(deps); const names = toNames(plugins); expect(names).toEqual([ - 'ga', - 'highlight', 'lunr', 'sharing', 'fontsettings', - 'theme-default' ]); + 'ga', 'highlight', 'lunr', 'sharing', + 'hints', 'headings', 'copy-code', 'theme-default' + ]); }); }); |