summaryrefslogtreecommitdiff
path: root/spec/frontend/__helpers__/class_spec_helper_spec.js
diff options
context:
space:
mode:
Diffstat (limited to 'spec/frontend/__helpers__/class_spec_helper_spec.js')
-rw-r--r--spec/frontend/__helpers__/class_spec_helper_spec.js26
1 files changed, 26 insertions, 0 deletions
diff --git a/spec/frontend/__helpers__/class_spec_helper_spec.js b/spec/frontend/__helpers__/class_spec_helper_spec.js
new file mode 100644
index 00000000000..533d5687bde
--- /dev/null
+++ b/spec/frontend/__helpers__/class_spec_helper_spec.js
@@ -0,0 +1,26 @@
+/* global ClassSpecHelper */
+
+import './class_spec_helper';
+
+describe('ClassSpecHelper', () => {
+ let testContext;
+
+ beforeEach(() => {
+ testContext = {};
+ });
+
+ describe('itShouldBeAStaticMethod', () => {
+ beforeEach(() => {
+ class TestClass {
+ instanceMethod() {
+ this.prop = 'val';
+ }
+ static staticMethod() {}
+ }
+
+ testContext.TestClass = TestClass;
+ });
+
+ ClassSpecHelper.itShouldBeAStaticMethod(ClassSpecHelper, 'itShouldBeAStaticMethod');
+ });
+});