gitlab-org--gitlab-foss/spec/javascripts/helpers/class_spec_helper_spec.js
2018-04-23 00:54:20 -05:00

18 lines
428 B
JavaScript

/* global ClassSpecHelper */
import './class_spec_helper';
describe('ClassSpecHelper', function () {
describe('itShouldBeAStaticMethod', () => {
beforeEach(() => {
class TestClass {
instanceMethod() { this.prop = 'val'; }
static staticMethod() {}
}
this.TestClass = TestClass;
});
ClassSpecHelper.itShouldBeAStaticMethod(ClassSpecHelper, 'itShouldBeAStaticMethod');
});
});