mirror of
https://github.com/GitbookIO/gitbook.git
synced 2026-09-19 00:55:13 +00:00
17 lines
486 B
JavaScript
17 lines
486 B
JavaScript
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 > 7).toBeTruthy();
|
|
|
|
expect(plugins.has('fontsettings')).toBe(true);
|
|
expect(plugins.has('search')).toBe(true);
|
|
});
|
|
});
|
|
|
|
});
|