bit-bin
Version:
<a href="https://opensource.org/licenses/Apache-2.0"><img alt="apache" src="https://img.shields.io/badge/License-Apache%202.0-blue.svg"></a> <a href="https://github.com/teambit/bit/blob/master/CONTRIBUTING.md"><img alt="prs" src="https://img.shields.io/b
44 lines (33 loc) • 893 B
JavaScript
function _bluebird() {
const data = require("bluebird");
_bluebird = function () {
return data;
};
return data;
}
function _chai() {
const data = require("chai");
_chai = function () {
return data;
};
return data;
}
function _autoTag() {
const data = require("./auto-tag");
_autoTag = function () {
return data;
};
return data;
}
describe('AutoTag', () => {
describe('getAutoTagPending', () => {
it('should return an empty array when there are no components in the scope', /*#__PURE__*/(0, _bluebird().coroutine)(function* () {
const scope = {
getComponentsAndVersions: () => Promise.resolve([])
}; // @ts-ignore AUTO-ADDED-AFTER-MIGRATION-PLEASE-FIX!
const test = yield (0, _autoTag().getAutoTagPending)(scope, [], []);
(0, _chai().expect)(test).to.be.an('array').and.empty;
}));
});
});
;