'use strict';

Object.defineProperty(exports, '__esModule', { value: true });

var utils = require('./utils.js');
var mocha = require('../utils/mocha.js');

function testRepo(factory, options) {
  const describe = mocha.getDescribe(options);
  const it = mocha.getIt(options);
  describe('.stats.repo', () => {
    let ipfs;
    before(async () => {
      ipfs = (await factory.spawn()).api;
    });
    after(() => factory.clean());
    it('should get repo stats', async () => {
      const res = await ipfs.stats.repo();
      utils.expectIsRepo(null, res);
    });
  });
}

exports.testRepo = testRepo;
