debian-mirror-gitlab/spec/frontend/__helpers__/class_spec_helper.js
2021-03-08 18:12:59 +05:30

10 lines
318 B
JavaScript

// eslint-disable-next-line jest/no-export
export default class ClassSpecHelper {
static itShouldBeAStaticMethod(base, method) {
return it('should be a static method', () => {
expect(Object.prototype.hasOwnProperty.call(base, method)).toBeTruthy();
});
}
}
window.ClassSpecHelper = ClassSpecHelper;