summaryrefslogtreecommitdiff
path: root/spec/frontend/helpers/class_spec_helper.js
blob: b26f087f0c5cda048e091bdc9ea5d7d1f502232c (plain)
1
2
3
4
5
6
7
8
9
10
// 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;