summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormfluharty <mfluharty@gitlab.com>2019-03-06 14:28:36 -0700
committermfluharty <mfluharty@gitlab.com>2019-03-07 01:36:18 -0700
commitb5a3004e2fae3637dab9efbe2f6540e4101e50a2 (patch)
tree070dd01eac9ee5ce95e59cc4a7d6773581be536d
parentd6a9cd5d040f68e00e8129186992fc4104c9fe42 (diff)
downloadgitlab-ce-b5a3004e2fae3637dab9efbe2f6540e4101e50a2.tar.gz
Add fields displayed in modal to test
-rw-r--r--spec/javascripts/pipelines/pipelines_table_row_spec.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/spec/javascripts/pipelines/pipelines_table_row_spec.js b/spec/javascripts/pipelines/pipelines_table_row_spec.js
index 223703b60c1..234fc705a81 100644
--- a/spec/javascripts/pipelines/pipelines_table_row_spec.js
+++ b/spec/javascripts/pipelines/pipelines_table_row_spec.js
@@ -195,8 +195,10 @@ describe('Pipelines Table Row', () => {
it('emits `openConfirmationModal` event when cancel button is clicked and toggles loading', () => {
eventHub.$once('openConfirmationModal', data => {
+ const { id, ref, commit } = pipeline;
+
expect(data.endpoint).toEqual('/cancel');
- expect(data.pipeline.id).toEqual(pipeline.id);
+ expect(data.pipeline).toEqual(jasmine.objectContaining({ id, ref, commit }));
});
component.$el.querySelector('.js-pipelines-cancel-button').click();