Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
4
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Switch to GitLab Next
Sign in / Register
Toggle navigation
P
prettier-plugin-jsdoc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
0
Merge Requests
0
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Test Cases
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Package Registry
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issue
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gumen
prettier-plugin-jsdoc
Commits
8c3c9bd3
Commit
8c3c9bd3
authored
Jan 23, 2020
by
irekg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove dots in unit tests
parent
83a7f636
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
11 deletions
+10
-11
tests/main.js
tests/main.js
+10
-11
No files found.
tests/main.js
View file @
8c3c9bd3
...
...
@@ -46,7 +46,7 @@ test('Should format regular jsDoc', () => {
* so it have more then one line and don't end with a dot
* REPEATED TWO TIMES BECAUSE IT WAS EASIER to copy
* function example description that was wrapped by hand
* so it have more then one line
and don't end with a dot
* so it have more then one line
.
* @returns {Boolean} Description for @return with s
* @param {String|Number} text - some text description that is very long and needs to be wrapped
* @param {String} [defaultValue="defaultTest"] TODO
...
...
@@ -68,8 +68,7 @@ const testFunction = (text, defaultValue, optionalNumber) => true
* @description Function example description that was wrapped by hand so it have
* more then one line and don't end with a dot REPEATED TWO TIMES
* BECAUSE IT WAS EASIER to copy function example description that
* was wrapped by hand so it have more then one line and don't end
* with a dot.
* was wrapped by hand so it have more then one line.
*
* @example
* var one = 5;
...
...
@@ -80,10 +79,10 @@ const testFunction = (text, defaultValue, optionalNumber) => true
* }
*
* @param {String|Number} text Some text description that is very long and needs
* to be wrapped
.
* @param {String} [defaultValue="defaultTest"] TODO
.
* @param {Number|Null} [optionalNumber] TODO
.
* @return {Boolean} Description for @return with s
.
* to be wrapped
* @param {String} [defaultValue="defaultTest"] TODO
* @param {Number|Null} [optionalNumber] TODO
* @return {Boolean} Description for @return with s
*/
const testFunction = (text, defaultValue, optionalNumber) => true;
`
...
...
@@ -95,7 +94,7 @@ const testFunction = (text, defaultValue, optionalNumber) => true;
test
(
'
Should add empty line after @description and @example description if necessary
'
,
()
=>
{
const
Result1
=
subject
(
`/** single line description*/`
)
const
Expected1
=
`/**
* @description Single line description
.
* @description Single line description
*/
`
const
Result2
=
subject
(
`/**
...
...
@@ -103,7 +102,7 @@ test('Should add empty line after @description and @example description if neces
* @example
*/`
)
const
Expected2
=
`/**
* @description Single line description
.
* @description Single line description
*
* @example
*/
...
...
@@ -115,11 +114,11 @@ test('Should add empty line after @description and @example description if neces
* @example
*/`
)
const
Expected3
=
`/**
* @description Single line description
.
* @description Single line description
*
* @example
*
* @return {Boolean} Always true
.
* @return {Boolean} Always true
*/
`
...
...
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