diff options
author | Filipa Lacerda <filipa@gitlab.com> | 2017-03-10 01:11:12 +0300 |
---|---|---|
committer | Filipa Lacerda <filipa@gitlab.com> | 2017-03-10 01:11:12 +0300 |
commit | 9275603df5a6f8e10e6a0a3af920c5a51bd690d6 (patch) | |
tree | 1f61c0d3eeb39199afda2dfab1a036264ba6b27a /spec/javascripts/mini_pipeline_graph_dropdown_spec.js | |
parent | a7a1a60421f49c1459d46a4092008af12127994c (diff) |
Updates test to use html tags
Diffstat (limited to 'spec/javascripts/mini_pipeline_graph_dropdown_spec.js')
-rw-r--r-- | spec/javascripts/mini_pipeline_graph_dropdown_spec.js | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/spec/javascripts/mini_pipeline_graph_dropdown_spec.js b/spec/javascripts/mini_pipeline_graph_dropdown_spec.js index 4e8637054ba..e504d41d4d4 100644 --- a/spec/javascripts/mini_pipeline_graph_dropdown_spec.js +++ b/spec/javascripts/mini_pipeline_graph_dropdown_spec.js @@ -50,7 +50,13 @@ import '~/flash'; it('should not close when user uses cmd/ctrl + click', () => { spyOn($, 'ajax').and.callFake(function (params) { params.success({ - html: '\u003cli\u003e\n\u003ca class="mini-pipeline-graph-dropdown-item" href="#"\u003e\u003cspan class="ci-status-icon ci-status-icon-failed"\u003e\u003c/span\u003e\n\u003cspan class="ci-build-text"\u003ebuild\u003c/span\u003e\n\u003c/a\u003e\u003ca class="ci-action-icon-wrapper js-ci-action-icon" href="#"\u003e\u003c/a\u003e\n\u003c/li\u003e\n', + html: `<li> + <a class="mini-pipeline-graph-dropdown-item" href="#"> + <span class="ci-status-icon ci-status-icon-failed"></span> + <span class="ci-build-text">build</span> + </a> + <a class="ci-action-icon-wrapper js-ci-action-icon" href="#"></a> + </li>`, }); }); new MiniPipelineGraph({ container: '.js-builds-dropdown-tests' }).bindEvents(); |