summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--packages/gitbook/src/plugins/__tests__/listDependencies.js27
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'
+ ]);
});
});