summaryrefslogtreecommitdiff
path: root/spec/javascripts
diff options
context:
space:
mode:
authorSimon Knox <psimyn@gmail.com>2018-02-12 18:20:52 +1100
committerSimon Knox <psimyn@gmail.com>2018-02-12 18:22:32 +1100
commit4e732deca8feb3d3c1a0538ddb9a98e3c442bb27 (patch)
treee79c8751a2981409cf7893f07cddbcba666b2943 /spec/javascripts
parent498ade4801a822f8704390b10d178af9fe7987cb (diff)
downloadgitlab-ce-4e732deca8feb3d3c1a0538ddb9a98e3c442bb27.tar.gz
Prevent MR Widget error when no CI configured34130-null-pipes
Diffstat (limited to 'spec/javascripts')
-rw-r--r--spec/javascripts/vue_mr_widget/mr_widget_options_spec.js9
1 files changed, 9 insertions, 0 deletions
diff --git a/spec/javascripts/vue_mr_widget/mr_widget_options_spec.js b/spec/javascripts/vue_mr_widget/mr_widget_options_spec.js
index cd00d0a39a3..45035effe81 100644
--- a/spec/javascripts/vue_mr_widget/mr_widget_options_spec.js
+++ b/spec/javascripts/vue_mr_widget/mr_widget_options_spec.js
@@ -295,6 +295,15 @@ describe('mrWidgetOptions', () => {
expect(notify.notifyMe).not.toHaveBeenCalled();
});
+
+ it('should not notify if no pipeline provided', () => {
+ vm.handleNotification({
+ ...data,
+ pipeline: undefined,
+ });
+
+ expect(notify.notifyMe).not.toHaveBeenCalled();
+ });
});
describe('resumePolling', () => {