summaryrefslogtreecommitdiff
path: root/spec/frontend/__helpers__/class_spec_helper.js
diff options
context:
space:
mode:
Diffstat (limited to 'spec/frontend/__helpers__/class_spec_helper.js')
-rw-r--r--spec/frontend/__helpers__/class_spec_helper.js10
1 files changed, 10 insertions, 0 deletions
diff --git a/spec/frontend/__helpers__/class_spec_helper.js b/spec/frontend/__helpers__/class_spec_helper.js
new file mode 100644
index 00000000000..b26f087f0c5
--- /dev/null
+++ b/spec/frontend/__helpers__/class_spec_helper.js
@@ -0,0 +1,10 @@
+// eslint-disable-next-line jest/no-export
+export default class ClassSpecHelper {
+ static itShouldBeAStaticMethod(base, method) {
+ return it('should be a static method', () => {
+ expect(Object.prototype.hasOwnProperty.call(base, method)).toBeTruthy();
+ });
+ }
+}
+
+window.ClassSpecHelper = ClassSpecHelper;