diff options
author | Alfredo Sumaran <alfredo@gitlab.com> | 2017-02-07 19:32:24 +0000 |
---|---|---|
committer | Alfredo Sumaran <alfredo@gitlab.com> | 2017-02-07 19:32:24 +0000 |
commit | 3f1bc3370ba5245742fd0546b33b43ef631aa325 (patch) | |
tree | 45d5fe0b77d4f3bee2132a54843fc0c394350939 /spec/javascripts | |
parent | 135b4f75d292070cde6576038f3116ff56aa1092 (diff) | |
parent | a0d0ffe53bff7cd849c978c12d686af0f82c2100 (diff) | |
download | gitlab-ce-3f1bc3370ba5245742fd0546b33b43ef631aa325.tar.gz |
Merge branch '23785-with-builds-tab-gone-give-additional-context-in-system-information-element-in-mr-commit-views-by-adding-mini-pipeline-graph' into 'master'
added inline pipeline graph
Closes #23785
See merge request !8576
Diffstat (limited to 'spec/javascripts')
-rw-r--r-- | spec/javascripts/mini_pipeline_graph_dropdown_spec.js.es6 | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/javascripts/mini_pipeline_graph_dropdown_spec.js.es6 b/spec/javascripts/mini_pipeline_graph_dropdown_spec.js.es6 index a6994f6edf4..7cdade01e00 100644 --- a/spec/javascripts/mini_pipeline_graph_dropdown_spec.js.es6 +++ b/spec/javascripts/mini_pipeline_graph_dropdown_spec.js.es6 @@ -31,7 +31,7 @@ require('~/mini_pipeline_graph_dropdown'); it('should call getBuildsList', () => { const getBuildsListSpy = spyOn(gl.MiniPipelineGraph.prototype, 'getBuildsList').and.callFake(function () {}); - new gl.MiniPipelineGraph({ container: '.js-builds-dropdown-tests' }); + new gl.MiniPipelineGraph({ container: '.js-builds-dropdown-tests' }).bindEvents(); document.querySelector('.js-builds-dropdown-button').click(); @@ -41,7 +41,7 @@ require('~/mini_pipeline_graph_dropdown'); it('should make a request to the endpoint provided in the html', () => { const ajaxSpy = spyOn($, 'ajax').and.callFake(function () {}); - new gl.MiniPipelineGraph({ container: '.js-builds-dropdown-tests' }); + new gl.MiniPipelineGraph({ container: '.js-builds-dropdown-tests' }).bindEvents(); document.querySelector('.js-builds-dropdown-button').click(); expect(ajaxSpy.calls.allArgs()[0][0].url).toEqual('foobar'); |