Skip to content

Commit

Permalink
chore(no-identical-title): use getAccessorValue over getStringValue
Browse files Browse the repository at this point in the history
  • Loading branch information
G-Rath committed Aug 11, 2019
1 parent b6af439 commit 6f375c3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/rules/no-identical-title.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import {
createRule,
getStringValue,
getAccessorValue,
isDescribe,
isStringNode,
isTemplateLiteral,
Expand Down Expand Up @@ -51,7 +51,7 @@ export default createRule({
) {
return;
}
const title = getStringValue(argument);
const title = getAccessorValue(argument);
if (isTestCase(node)) {
if (currentLayer.testTitles.includes(title)) {
context.report({ messageId: 'multipleTestTitle', node });
Expand Down

0 comments on commit 6f375c3

Please sign in to comment.