'use strict';

var _chai;

function _load_chai() {
  return _chai = _interopRequireDefault(require('chai'));
}

var _scopeMigrator;

function _load_scopeMigrator() {
  return _scopeMigrator = _interopRequireDefault(require('../../../src/scope/migrations/scope-migrator'));
}

var _simpleComponent;

function _load_simpleComponent() {
  return _simpleComponent = _interopRequireWildcard(require('./objectsFixtures/simple-component'));
}

var _simpleManifest;

function _load_simpleManifest() {
  return _simpleManifest = _interopRequireDefault(require('./manifests/simple-manifest'));
}

var _models;

function _load_models() {
  return _models = require('../../../src/scope/models');
}

function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj.default = obj; return newObj; } }

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

var expect = (_chai || _load_chai()).default.expect;

describe.skip('scope-migrator.migrate()', function () {
  var clonedComponent = void 0;
  var clonedVersion = void 0;
  var clonedSymlink = void 0;
  var resultObjectsP = void 0;
  before(function () {
    // clonedComponent = R.clone(simpleComponentObjects.componentObject);
    clonedComponent = (_simpleComponent || _load_simpleComponent()).componentObject.clone();
    clonedVersion = (_simpleComponent || _load_simpleComponent()).version1Object.clone();
    clonedSymlink = (_simpleComponent || _load_simpleComponent()).symlinkObject.clone();
    resultObjectsP = (0, (_scopeMigrator || _load_scopeMigrator()).default)('0.0.8', (_simpleManifest || _load_simpleManifest()).default, [clonedComponent, clonedSymlink, clonedVersion]);
    return resultObjectsP;
  });
  it('should run all the migration in the correct order for the component objects', function () {
    // resultObjects = await resultObjectsP;
    console.log(resultObjects);
    // resultObjectsP.then((resultObjects) => {
    //   const component = resultObjects.newObjects.filter(obj => obj instanceof Component)[0];
    //   // console.log(component);
    //   console.log(component);
    //   expect(component.migrationVersion).include.ordered.members(['0.10.9', '0.10.10', '0.10.10(2)']);
    // }).catch((err) => {
    //   console.log(err);
    // });
  });
});