summaryrefslogtreecommitdiff
path: root/spec/frontend/behaviors/bind_in_out_spec.js
diff options
context:
space:
mode:
Diffstat (limited to 'spec/frontend/behaviors/bind_in_out_spec.js')
-rw-r--r--spec/frontend/behaviors/bind_in_out_spec.js9
1 files changed, 6 insertions, 3 deletions
diff --git a/spec/frontend/behaviors/bind_in_out_spec.js b/spec/frontend/behaviors/bind_in_out_spec.js
index 4d958e30b4d..7b40b1d3cd7 100644
--- a/spec/frontend/behaviors/bind_in_out_spec.js
+++ b/spec/frontend/behaviors/bind_in_out_spec.js
@@ -1,4 +1,3 @@
-import ClassSpecHelper from 'helpers/class_spec_helper';
import BindInOut from '~/behaviors/bind_in_out';
describe('BindInOut', () => {
@@ -142,7 +141,9 @@ describe('BindInOut', () => {
testContext.initAll = BindInOut.initAll();
});
- ClassSpecHelper.itShouldBeAStaticMethod(BindInOut, 'initAll');
+ it('should be a static method', () => {
+ expect(BindInOut.initAll).toEqual(expect.any(Function));
+ });
it('should call .querySelectorAll', () => {
expect(document.querySelectorAll).toHaveBeenCalledWith('*[data-bind-in]');
@@ -169,7 +170,9 @@ describe('BindInOut', () => {
testContext.init = BindInOut.init({}, {});
});
- ClassSpecHelper.itShouldBeAStaticMethod(BindInOut, 'init');
+ it('should be a static method', () => {
+ expect(BindInOut.init).toEqual(expect.any(Function));
+ });
it('should call .addEvents', () => {
expect(BindInOut.prototype.addEvents).toHaveBeenCalled();