Commit e2fec463 authored by VectorW's avatar VectorW

Add "throws" to default ordering after param and before return

parent d21baddc
......@@ -279,6 +279,7 @@ module.exports = {
'other',
'param',
'yields',
'throws',
'return',
]}],
description: 'Define order of tags.',
......
......@@ -204,8 +204,8 @@ test('Should align vartically param|property|return|throws if option set to true
const Result1 = subject(unformattedJsdoc, options1)
const Expected1 = `/**
* @property {Object} unalginedProp Unaligned property descriptin
* @throws {CustomExceptio} Unaligned throws description
* @param {String} unalginedParam Unaligned param description
* @throws {CustomExceptio} Unaligned throws description
* @return {undefined}
*/
`
......@@ -223,10 +223,10 @@ test('Should align vartically param|property|return|throws if option set to true
const Expected2 = `/**
* @property {Object} unalginedProp Unaligned property
* descriptin
* @throws {CustomExceptio} Unaligned throws
* description
* @param {String} unalginedParam Unaligned param
* description
* @throws {CustomExceptio} Unaligned throws
* description
* @return {String} Unaligned returns
* description
*/
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment