Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'spec/frontend/__helpers__/stub_children.js')
-rw-r--r--spec/frontend/__helpers__/stub_children.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/spec/frontend/__helpers__/stub_children.js b/spec/frontend/__helpers__/stub_children.js
new file mode 100644
index 00000000000..0711563699f
--- /dev/null
+++ b/spec/frontend/__helpers__/stub_children.js
@@ -0,0 +1,3 @@
+export default function stubChildren(Component) {
+ return Object.fromEntries(Object.keys(Component.components).map((c) => [c, true]));
+}