From b20381204ad84069677a53bff1cbe728745c38db Mon Sep 17 00:00:00 2001 From: Phil Hughes Date: Wed, 1 Nov 2017 09:26:16 +0000 Subject: [PATCH] karma spec updates --- .../javascripts/notes/components/issue_note.vue | 4 +++- .../account/components/delete_account_modal.vue | 2 +- spec/javascripts/groups/components/app_spec.js | 4 ++-- .../vue_shared/components/markdown/field_spec.js | 14 ++++++++------ 4 files changed, 14 insertions(+), 10 deletions(-) diff --git a/app/assets/javascripts/notes/components/issue_note.vue b/app/assets/javascripts/notes/components/issue_note.vue index 0ddbd672bed..40318f9a600 100644 --- a/app/assets/javascripts/notes/components/issue_note.vue +++ b/app/assets/javascripts/notes/components/issue_note.vue @@ -122,7 +122,9 @@ // we need to do this to prevent noteForm inconsistent content warning // this is something we intentionally do so we need to recover the content this.note.note = noteText; - this.$refs.noteBody.$refs.noteForm.note = noteText; // TODO: This could be better + if (this.$refs.noteBody) { + this.$refs.noteBody.$refs.noteForm.note = noteText; // TODO: This could be better + } }, }, created() { diff --git a/app/assets/javascripts/profile/account/components/delete_account_modal.vue b/app/assets/javascripts/profile/account/components/delete_account_modal.vue index b2b34cb83e1..6348a2e331d 100644 --- a/app/assets/javascripts/profile/account/components/delete_account_modal.vue +++ b/app/assets/javascripts/profile/account/components/delete_account_modal.vue @@ -98,7 +98,7 @@ Once you confirm %{deleteAccount}, it cannot be undone or recovered.`), @toggle="toggleOpen" @submit="onSubmit"> -