diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2019-12-20 18:07:34 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2019-12-20 18:07:34 +0300 |
commit | 8b61452138ecc511b52cd49be4ee6b8a80390c50 (patch) | |
tree | 122b817432c2a0f0e23767bd95791a89b20540c0 /spec/frontend/helpers | |
parent | f864f8a7aafa45b0e4c04e4312f89da4b1227c0f (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/frontend/helpers')
-rw-r--r-- | spec/frontend/helpers/class_spec_helper_spec.js | 26 |
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'); + }); +}); |