text: var path = require('path');
  var Immutable = require('immutable');
  
  describe('findInstalled', function() {
      var findInstalled = require('../findInstalled');
  
      it('must list default plugins for gitbook directory', function() {
          // Read gitbook-plugins from package.json
          var pkg = require(path.resolve(__dirname, '../../../package.json'));
          var gitbookPlugins = Immutable.Seq(pkg.dependencies)
              .filter(function(v, k) {
                  return k.indexOf('gitbook-plugin') === 0;
              })
              .cacheResult();
  
          return findInstalled(path.resolve(__dirname, '../../../'))
          .then(function(plugins) {
              expect(plugins.size >= gitbookPlugins.size).toBeTruthy();
  
              expect(plugins.has('fontsettings')).toBe(true);
              expect(plugins.has('search')).toBe(true);
          });
      });
  
  });
  