import { expect } from 'aegir/utils/chai.js';
import {
  getDescribe,
  getIt
} from '../utils/mocha.js';
export function testVersion(factory, options) {
  const describe = getDescribe(options);
  const it = getIt(options);
  describe('.repo.version', () => {
    let ipfs;
    before(async () => {
      ipfs = (await factory.spawn()).api;
    });
    after(() => factory.clean());
    it('should get the repo version', async () => {
      const version = await ipfs.repo.version();
      expect(version).to.exist();
    });
  });
}