Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
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.js10
1 files changed, 2 insertions, 8 deletions
diff --git a/spec/frontend/behaviors/bind_in_out_spec.js b/spec/frontend/behaviors/bind_in_out_spec.js
index 923b6d372dd..92a68ddd387 100644
--- a/spec/frontend/behaviors/bind_in_out_spec.js
+++ b/spec/frontend/behaviors/bind_in_out_spec.js
@@ -163,14 +163,8 @@ describe('BindInOut', () => {
describe('init', () => {
beforeEach(() => {
- // eslint-disable-next-line func-names
- jest.spyOn(BindInOut.prototype, 'addEvents').mockImplementation(function() {
- return this;
- });
- // eslint-disable-next-line func-names
- jest.spyOn(BindInOut.prototype, 'updateOut').mockImplementation(function() {
- return this;
- });
+ jest.spyOn(BindInOut.prototype, 'addEvents').mockReturnThis();
+ jest.spyOn(BindInOut.prototype, 'updateOut').mockReturnThis();
testContext.init = BindInOut.init({}, {});
});