debian-mirror-gitlab/spec/frontend/helpers/class_spec_helper_spec.js
2020-03-09 13:42:32 +05:30

26 lines
517 B
JavaScript

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