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/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');
+ });
+});