Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
93c27c3b
Commit
93c27c3b
authored
Feb 26, 2019
by
Winnie Hellmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Validate NoteForm props in noteable_discussion_spec.js
parent
f5ce678d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
1 deletion
+12
-1
spec/javascripts/notes/components/noteable_discussion_spec.js
.../javascripts/notes/components/noteable_discussion_spec.js
+12
-1
No files found.
spec/javascripts/notes/components/noteable_discussion_spec.js
View file @
93c27c3b
...
...
@@ -3,6 +3,7 @@ import createStore from '~/notes/stores';
import
noteableDiscussion
from
'
~/notes/components/noteable_discussion.vue
'
;
import
ReplyPlaceholder
from
'
~/notes/components/discussion_reply_placeholder.vue
'
;
import
ResolveWithIssueButton
from
'
~/notes/components/discussion_resolve_with_issue_button.vue
'
;
import
NoteForm
from
'
~/notes/components/note_form.vue
'
;
import
'
~/behaviors/markdown/render_gfm
'
;
import
{
noteableDataMock
,
discussionMock
,
notesDataMock
}
from
'
../mock_data
'
;
import
mockDiffFile
from
'
../../diffs/mock_data/diff_file
'
;
...
...
@@ -72,7 +73,17 @@ describe('noteable_discussion component', () => {
.
then
(()
=>
wrapper
.
vm
.
$nextTick
())
.
then
(()
=>
{
expect
(
wrapper
.
vm
.
isReplying
).
toEqual
(
true
);
expect
(
wrapper
.
vm
.
$refs
.
noteForm
).
not
.
toBeNull
();
const
noteForm
=
wrapper
.
find
(
NoteForm
);
expect
(
noteForm
.
exists
()).
toBe
(
true
);
const
noteFormProps
=
noteForm
.
props
();
expect
(
noteFormProps
.
discussion
).
toBe
(
discussionMock
);
expect
(
noteFormProps
.
isEditing
).
toBe
(
false
);
expect
(
noteFormProps
.
line
).
toBe
(
null
);
expect
(
noteFormProps
.
saveButtonTitle
).
toBe
(
'
Comment
'
);
})
.
then
(
done
)
.
catch
(
done
.
fail
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment