debian-mirror-gitlab/spec/frontend/__helpers__/class_spec_helper.js

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

11 lines
318 B
JavaScript
Raw Normal View History

2020-05-24 23:13:21 +05:30
// eslint-disable-next-line jest/no-export
2019-07-07 11:18:12 +05:30
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;