'use strict';

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

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

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

exports.testStat = testStat;
