bonsai-analyzer
Version:
Trim your dependency tree.
22 lines (18 loc) • 619 B
JavaScript
;
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
var _defaults = require("../../__test_helpers__/defaults");
var _getModulesById = _interopRequireDefault(require("../getModulesById"));
const stats = {
modules: [(0, _defaults.defaultExtendedModule)({
id: 1
}), (0, _defaults.defaultExtendedModule)({
id: 2
})]
};
describe('getModulesById', () => {
it('should list all the chunks', () => {
const result = (0, _getModulesById.default)(stats.modules);
expect(Object.keys(result)).toHaveLength(2);
expect(result).toMatchSnapshot();
});
});