'use strict';

var _regenerator;

function _load_regenerator() {
  return _regenerator = _interopRequireDefault(require('babel-runtime/regenerator'));
}

var _bluebird;

function _load_bluebird() {
  return _bluebird = require('bluebird');
}

var _chai;

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

var _autoTag;

function _load_autoTag() {
  return _autoTag = require('./auto-tag');
}

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

describe('AutoTag', function () {
  describe('getAutoTagPending', function () {
    it('should return an empty array when there are no components in the scope', (0, (_bluebird || _load_bluebird()).coroutine)( /*#__PURE__*/(_regenerator || _load_regenerator()).default.mark(function _callee() {
      var scope, test;
      return (_regenerator || _load_regenerator()).default.wrap(function _callee$(_context) {
        while (1) {
          switch (_context.prev = _context.next) {
            case 0:
              scope = { getComponentsAndVersions: function getComponentsAndVersions() {
                  return Promise.resolve([]);
                } };
              _context.next = 3;
              return (0, (_autoTag || _load_autoTag()).getAutoTagPending)(scope, [], []);

            case 3:
              test = _context.sent;

              (0, (_chai || _load_chai()).expect)(test).to.be.an('array').and.empty;

            case 5:
            case 'end':
              return _context.stop();
          }
        }
      }, _callee, undefined);
    })));
  });
});