2017-01-04 12:01:14 +00:00
|
|
|
/* global ClassSpecHelper */
|
2017-01-28 01:33:58 +00:00
|
|
|
|
2017-05-16 21:01:51 +00:00
|
|
|
import './class_spec_helper';
|
2017-01-04 12:01:14 +00:00
|
|
|
|
2019-12-20 15:07:34 +00:00
|
|
|
describe('ClassSpecHelper', () => {
|
|
|
|
let testContext;
|
|
|
|
|
|
|
|
beforeEach(() => {
|
|
|
|
testContext = {};
|
|
|
|
});
|
|
|
|
|
2018-01-23 15:19:56 +00:00
|
|
|
describe('itShouldBeAStaticMethod', () => {
|
2017-01-04 12:01:14 +00:00
|
|
|
beforeEach(() => {
|
|
|
|
class TestClass {
|
2018-10-17 07:13:26 +00:00
|
|
|
instanceMethod() {
|
|
|
|
this.prop = 'val';
|
|
|
|
}
|
2017-01-04 12:01:14 +00:00
|
|
|
static staticMethod() {}
|
|
|
|
}
|
|
|
|
|
2019-12-20 15:07:34 +00:00
|
|
|
testContext.TestClass = TestClass;
|
2017-01-04 12:01:14 +00:00
|
|
|
});
|
|
|
|
|
|
|
|
ClassSpecHelper.itShouldBeAStaticMethod(ClassSpecHelper, 'itShouldBeAStaticMethod');
|
|
|
|
});
|
|
|
|
});
|