debian-mirror-gitlab/spec/javascripts/helpers/class_spec_helper.js
2017-09-10 17:25:29 +05:30

9 lines
275 B
JavaScript

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;