BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
6c34f5a2
Commit
6c34f5a2
authored
May 17, 2017
by
Phil Hughes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added a test with markdown
[ci skip]
parent
35b5ea0a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
1 deletion
+13
-1
description_spec.js
...ascripts/issue_show/components/fields/description_spec.js
+13
-1
No files found.
spec/javascripts/issue_show/components/fields/description_spec.js
View file @
6c34f5a2
...
...
@@ -19,7 +19,7 @@ describe('Description field component', () => {
propsData
:
{
markdownPreviewUrl
:
'/'
,
markdownDocs
:
'/'
,
stor
e
,
formState
:
store
.
formStat
e
,
},
}).
$mount
();
...
...
@@ -31,4 +31,16 @@ describe('Description field component', () => {
vm
.
$el
.
querySelector
(
'.md-area textarea'
).
value
,
).
toBe
(
'test'
);
});
it
(
'renders markdown field with a markdown description'
,
(
done
)
=>
{
store
.
formState
.
description
=
'**test**'
;
Vue
.
nextTick
(()
=>
{
expect
(
vm
.
$el
.
querySelector
(
'.md-area textarea'
).
value
,
).
toBe
(
'**test**'
);
done
();
});
});
});
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