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
0
Merge Requests
0
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
Boxiang Sun
gitlab-ce
Commits
4d1ac565
Commit
4d1ac565
authored
Mar 26, 2019
by
Winnie Hellmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove top-level mount from note_form_spec.js
parent
b4de23a6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
6 deletions
+12
-6
spec/javascripts/notes/components/note_form_spec.js
spec/javascripts/notes/components/note_form_spec.js
+12
-6
No files found.
spec/javascripts/notes/components/note_form_spec.js
View file @
4d1ac565
...
@@ -41,8 +41,6 @@ describe('issue_note_form component', () => {
...
@@ -41,8 +41,6 @@ describe('issue_note_form component', () => {
noteBody
:
'
Magni suscipit eius consectetur enim et ex et commodi.
'
,
noteBody
:
'
Magni suscipit eius consectetur enim et ex et commodi.
'
,
noteId
:
'
545
'
,
noteId
:
'
545
'
,
};
};
wrapper
=
createComponentWrapper
();
});
});
afterEach
(()
=>
{
afterEach
(()
=>
{
...
@@ -50,6 +48,10 @@ describe('issue_note_form component', () => {
...
@@ -50,6 +48,10 @@ describe('issue_note_form component', () => {
});
});
describe
(
'
noteHash
'
,
()
=>
{
describe
(
'
noteHash
'
,
()
=>
{
beforeEach
(()
=>
{
wrapper
=
createComponentWrapper
();
});
it
(
'
returns note hash string based on `noteId`
'
,
()
=>
{
it
(
'
returns note hash string based on `noteId`
'
,
()
=>
{
expect
(
wrapper
.
vm
.
noteHash
).
toBe
(
`#note_
${
props
.
noteId
}
`
);
expect
(
wrapper
.
vm
.
noteHash
).
toBe
(
`#note_
${
props
.
noteId
}
`
);
});
});
...
@@ -71,6 +73,10 @@ describe('issue_note_form component', () => {
...
@@ -71,6 +73,10 @@ describe('issue_note_form component', () => {
});
});
describe
(
'
conflicts editing
'
,
()
=>
{
describe
(
'
conflicts editing
'
,
()
=>
{
beforeEach
(()
=>
{
wrapper
=
createComponentWrapper
();
});
it
(
'
should show conflict message if note changes outside the component
'
,
done
=>
{
it
(
'
should show conflict message if note changes outside the component
'
,
done
=>
{
wrapper
.
setProps
({
wrapper
.
setProps
({
...
props
,
...
props
,
...
@@ -100,6 +106,10 @@ describe('issue_note_form component', () => {
...
@@ -100,6 +106,10 @@ describe('issue_note_form component', () => {
});
});
describe
(
'
form
'
,
()
=>
{
describe
(
'
form
'
,
()
=>
{
beforeEach
(()
=>
{
wrapper
=
createComponentWrapper
();
});
it
(
'
should render text area with placeholder
'
,
()
=>
{
it
(
'
should render text area with placeholder
'
,
()
=>
{
const
textarea
=
wrapper
.
find
(
'
textarea
'
);
const
textarea
=
wrapper
.
find
(
'
textarea
'
);
...
@@ -198,10 +208,6 @@ describe('issue_note_form component', () => {
...
@@ -198,10 +208,6 @@ describe('issue_note_form component', () => {
});
});
describe
(
'
with autosaveKey
'
,
()
=>
{
describe
(
'
with autosaveKey
'
,
()
=>
{
beforeEach
(()
=>
{
wrapper
.
destroy
();
});
describe
(
'
with draft
'
,
()
=>
{
describe
(
'
with draft
'
,
()
=>
{
beforeEach
(
done
=>
{
beforeEach
(
done
=>
{
Object
.
assign
(
props
,
{
Object
.
assign
(
props
,
{
...
...
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