lo1tuma / eslint-plugin-mocha

ESLint rules for mocha
MIT License
281 stars 61 forks source link

No-identical-title rule #297

Closed PavelSamal closed 3 years ago

PavelSamal commented 3 years ago

Problem

it(`should call ${ROOT_ACTIONS.ACTION} when ... is false`, async () => {
    });
it(`should call ${ROOT_ACTIONS.ACTION} when ... is false`, async () => {
    });

We have identical title, but lint don't thrown error

lo1tuma commented 3 years ago

That is the expected behavior. You are using a dynamic string, so we cannot find out the value with static analysis tool.