gitlab-org--gitlab-foss/spec/frontend/helpers/stub_children.js

3 lines
136 B
JavaScript

export default function stubChildren(Component) {
return Object.fromEntries(Object.keys(Component.components).map(c => [c, true]));
}