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

import './class_spec_helper';

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

      this.TestClass = TestClass;
    });

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