summaryrefslogtreecommitdiff
path: root/spec/javascripts/helpers/class_spec_helper_spec.js
blob: 1415ffb7eb39e171f6964aee7bf6d823356b6b39 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/* global ClassSpecHelper */

import './class_spec_helper';

describe('ClassSpecHelper', () => {
  describe('itShouldBeAStaticMethod', () => {
    beforeEach(() => {
      class TestClass {
        instanceMethod() { this.prop = 'val'; }
        static staticMethod() {}
      }

      this.TestClass = TestClass;
    });

    ClassSpecHelper.itShouldBeAStaticMethod(ClassSpecHelper, 'itShouldBeAStaticMethod');
  });
});