Skip to content

Commit

Permalink
chore: remove a workaround for eslint/eslint#15507
Browse files Browse the repository at this point in the history
  • Loading branch information
yudai-nkt committed Jan 22, 2022
1 parent da6006e commit e68c963
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions scripts/templates/test.ts.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,9 @@ const ruleTester = new TSESLint.RuleTester({

const Test = suite("Test suite for \`{{name}}\`.");

// Workaround for https://github.com/eslint/eslint/pull/15507
RuleTester.it = (text, callback) => {
Test(text, callback)
}
TSESLint.RuleTester.it = (text, callback) => {
Test(text, callback);
};

ruleTester.run("{{name}}", rule, {
valid: [
Expand Down

0 comments on commit e68c963

Please sign in to comment.