diff options
author | Clement Ho <ClemMakesApps@gmail.com> | 2016-11-19 07:47:10 +0300 |
---|---|---|
committer | Clement Ho <ClemMakesApps@gmail.com> | 2016-11-19 07:47:10 +0300 |
commit | 34eec88c6cfc288bfb18e51d4876905f1337c6e6 (patch) | |
tree | 4970d047db97f871246ffdd46b54d621202539ce /spec/javascripts | |
parent | 461d709c87cc1b83d36539ccd16f279d6e12b89f (diff) |
Fix spec
Diffstat (limited to 'spec/javascripts')
-rw-r--r-- | spec/javascripts/merge_request_widget_spec.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/javascripts/merge_request_widget_spec.js b/spec/javascripts/merge_request_widget_spec.js index 8c5afc2ff3c..575b87e6f17 100644 --- a/spec/javascripts/merge_request_widget_spec.js +++ b/spec/javascripts/merge_request_widget_spec.js @@ -35,9 +35,9 @@ external_url_formatted: 'test-url.com' }]; - spyOn(jQuery, 'getJSON').and.callFake((req, cb) => { + spyOn(jQuery, 'getJSON').and.callFake(function(req, cb) { cb(this.ciEnvironmentsStatusData); - }); + }.bind(this)); }); it('should call renderEnvironments when the environments property is set', function() { |