summaryrefslogtreecommitdiffstats
path: root/lib/plugins/__tests__/findInstalled.js
blob: 956e73faaf5d69e0beccf68484ec60fb93107f57 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
jest.autoMockOff();

var path = require('path');

describe('findInstalled', function() {
    var findInstalled = require('../findInstalled');

    pit('must list default plugins for gitbook directory', function() {
        return findInstalled(path.resolve(__dirname, '../../../'))
        .then(function(plugins) {
            expect(plugins.size).toBe(7);

            expect(plugins.has('fontsettings')).toBe(true);
            expect(plugins.has('search')).toBe(true);
        });
    });

});