mirror of
https://github.com/GitbookIO/gitbook.git
synced 2026-09-19 17:15:24 +00:00
20 lines
540 B
JavaScript
20 lines
540 B
JavaScript
jest.autoMockOff();
|
|
jasmine.DEFAULT_TIMEOUT_INTERVAL = 10000;
|
|
|
|
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);
|
|
});
|
|
});
|
|
|
|
});
|