Skip to content

Commit

Permalink
feat: updated (#114)
Browse files Browse the repository at this point in the history
  • Loading branch information
veritem committed Mar 25, 2023
1 parent 5a02740 commit 52bdc2b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/rules/prefer-lowercase-title.test.ts
Expand Up @@ -12,6 +12,7 @@ describe(RULE_NAME, () => {
valid: [
'it.each()',
'it.each()(1)',
'it.todo();',
'describe("oo", function () {})',
'test("foo", function () {})',
'test(`123`, function () {})'
Expand Down
4 changes: 2 additions & 2 deletions src/utils/index.ts
Expand Up @@ -130,9 +130,9 @@ export const getAccessorValue =
*/
export const getStringValue =
<S extends string>(node: StringNode<S>): S =>
node.type === AST_NODE_TYPES.TemplateLiteral
node?.type === AST_NODE_TYPES.TemplateLiteral
? node.quasis[0].value.raw
: node.value
: node?.value

export const replaceAccessorFixer = (
fixer: TSESLint.RuleFixer,
Expand Down

0 comments on commit 52bdc2b

Please sign in to comment.