Skip to content

Commit

Permalink
test(require-param): Add test case for TSIndexSignature example
Browse files Browse the repository at this point in the history
  • Loading branch information
brettz9 committed May 9, 2020
1 parent 3f76c7c commit 658a5a1
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions test/rules/assertions/requireParam.js
Original file line number Diff line number Diff line change
Expand Up @@ -2644,5 +2644,19 @@ export default {
},
],
},
{
code: `
class CSS {
/**
* Set one or more CSS properties for the set of matched elements.
*
* @param {Object} propertyObject - An object of property-value pairs to set.
*/
setCssObject(propertyObject: {[key: string]: string | number}): void {
}
}
`,
parser: require.resolve('@typescript-eslint/parser'),
},
],
};

0 comments on commit 658a5a1

Please sign in to comment.