Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'spec/frontend/notes/components/discussion_notes_spec.js')
-rw-r--r--spec/frontend/notes/components/discussion_notes_spec.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/frontend/notes/components/discussion_notes_spec.js b/spec/frontend/notes/components/discussion_notes_spec.js
index 1b8b6bec490..a74d709ed3a 100644
--- a/spec/frontend/notes/components/discussion_notes_spec.js
+++ b/spec/frontend/notes/components/discussion_notes_spec.js
@@ -140,21 +140,21 @@ describe('DiscussionNotes', () => {
findNoteAtIndex(0).vm.$emit('handleDeleteNote');
await nextTick();
- expect(wrapper.emitted().deleteNote).toBeTruthy();
+ expect(wrapper.emitted().deleteNote).toHaveLength(1);
});
it('emits startReplying when first note emits startReplying', async () => {
findNoteAtIndex(0).vm.$emit('startReplying');
await nextTick();
- expect(wrapper.emitted().startReplying).toBeTruthy();
+ expect(wrapper.emitted().startReplying).toHaveLength(1);
});
it('emits deleteNote when second note emits handleDeleteNote', async () => {
findNoteAtIndex(1).vm.$emit('handleDeleteNote');
await nextTick();
- expect(wrapper.emitted().deleteNote).toBeTruthy();
+ expect(wrapper.emitted().deleteNote).toHaveLength(1);
});
});
@@ -169,7 +169,7 @@ describe('DiscussionNotes', () => {
note.vm.$emit('handleDeleteNote');
await nextTick();
- expect(wrapper.emitted().deleteNote).toBeTruthy();
+ expect(wrapper.emitted().deleteNote).toHaveLength(1);
});
});
});