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

4 lines
138 B
JavaScript
Raw Normal View History

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