summaryrefslogtreecommitdiff
path: root/spec/javascripts
diff options
context:
space:
mode:
authorJose Ivan Vargas <jvargas@gitlab.com>2017-03-16 19:07:04 -0600
committerJose Ivan Vargas <jvargas@gitlab.com>2017-03-20 16:01:18 -0600
commit20cbfb482be95a6a0e9f80ff7576bd3126a03ae3 (patch)
treee2538fa27ead53f15d52b932592a9d166fe5f686 /spec/javascripts
parentf64fbf0ec77a894f1a948b5be1ba8347a57376a1 (diff)
downloadgitlab-ce-20cbfb482be95a6a0e9f80ff7576bd3126a03ae3.tar.gz
Removed unused response in promise
Diffstat (limited to 'spec/javascripts')
-rw-r--r--spec/javascripts/lib/utils/common_utils_spec.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/javascripts/lib/utils/common_utils_spec.js b/spec/javascripts/lib/utils/common_utils_spec.js
index 56d92530e0a..58fe92cc9cd 100644
--- a/spec/javascripts/lib/utils/common_utils_spec.js
+++ b/spec/javascripts/lib/utils/common_utils_spec.js
@@ -221,8 +221,8 @@ require('~/lib/utils/common_utils');
gl.utils.backOff((next) => {
return new Promise((resolve) => {
resolve(expectedResponseValue);
- }).then((resp) => {
- setTimeout(next(resp), 5000); // it will time out
+ }).then(() => {
+ setTimeout(next(), 5000); // it will time out
});
}, 3000).catch((errBackoffResp) => {
expect(errBackoffResp instanceof Error).toBe(true);