debian-mirror-gitlab/spec/javascripts/helpers/class_spec_helper_spec.js
2018-03-17 18:26:18 +05:30

18 lines
422 B
JavaScript

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