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/batch_comments/components/draft_note_spec.js')
-rw-r--r--spec/frontend/batch_comments/components/draft_note_spec.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/frontend/batch_comments/components/draft_note_spec.js b/spec/frontend/batch_comments/components/draft_note_spec.js
index ccca4a2c3e9..03ecbc01a56 100644
--- a/spec/frontend/batch_comments/components/draft_note_spec.js
+++ b/spec/frontend/batch_comments/components/draft_note_spec.js
@@ -61,7 +61,7 @@ describe('Batch comments draft note component', () => {
createComponent();
expect(wrapper.findComponent(GlBadge).exists()).toBe(true);
- const note = wrapper.find(NoteableNote);
+ const note = wrapper.findComponent(NoteableNote);
expect(note.exists()).toBe(true);
expect(note.props().note).toEqual(draft);
@@ -115,14 +115,14 @@ describe('Batch comments draft note component', () => {
await nextTick();
const publishNowButton = findSubmitReviewButton();
- expect(publishNowButton.attributes().disabled).toBeTruthy();
+ expect(publishNowButton.attributes().disabled).toBe('true');
});
});
describe('update', () => {
it('dispatches updateDraft', async () => {
createComponent();
- const note = wrapper.find(NoteableNote);
+ const note = wrapper.findComponent(NoteableNote);
note.vm.$emit('handleEdit');
@@ -147,7 +147,7 @@ describe('Batch comments draft note component', () => {
createComponent();
jest.spyOn(window, 'confirm').mockImplementation(() => true);
- const note = wrapper.find(NoteableNote);
+ const note = wrapper.findComponent(NoteableNote);
note.vm.$emit('handleDeleteNote', draft);