Skip to content

Commit

Permalink
Add function no params test
Browse files Browse the repository at this point in the history
  • Loading branch information
neild3r committed Mar 27, 2017
1 parent 40d53a6 commit 684332f
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions test/fixtures/doc.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,5 +67,31 @@
" * @author John Smith <john@smith.com>",
" */"
]
},
{
"name": "Function params no return",
"config": {
"gap": true,
"extra": [
"@author John Smith <john@smith.com>"
]
},
"input": {
"message": "Undocumented function",
"params": [
{
"name": "$name",
"type": "int"
}
]
},
"expected": [
"/**",
" * ${1:Undocumented function}",
" *",
" * @param ${2:int} ${3:\\$name}",
" * @author John Smith <john@smith.com>",
" */"
]
}
]

0 comments on commit 684332f

Please sign in to comment.