debian-mirror-gitlab/spec/frontend/__helpers__/stub_children.js
2021-03-08 18:12:59 +05:30

3 lines
138 B
JavaScript

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