Skip to content

Commit

Permalink
chore(lint): exclude non-abstract rule check (ifx incorrect condition…
Browse files Browse the repository at this point in the history
…al check)
  • Loading branch information
ala-n committed Jul 22, 2024
1 parent bc87a0b commit da1a237
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions eslint/test/deprecated-class-method.test.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
import {RuleTester} from 'eslint';
import {buildRule} from '../src/core/deprecated-class-method';

import deprecatedMediaRuleListParse from '../src/rules/4/deprecated.media-rule-list-parse';

const VALID_CASES = [
{
code: `
Expand Down Expand Up @@ -187,13 +185,3 @@ describe('ESL Migration Rules: Deprecated Static Method: valid', () => {

ruleTester.run('deprecated-static-method', rule, {valid: VALID_CASES, invalid: INVALID_CASES_TEST_CLASS});
});

describe('ESL Migration Rules: Deprecated Static Method: valid', () => {
const rule = deprecatedMediaRuleListParse;

const ruleTester = new RuleTester({
parser: require.resolve('@typescript-eslint/parser')
});

ruleTester.run('deprecated-static-method', rule, {valid: VALID_CASES, invalid: INVALID_CASES_RULE_LIST});
});

0 comments on commit da1a237

Please sign in to comment.