Skip to content

Commit

Permalink
test: fix "skip deactivate rules, for custom enable category" test (#234
Browse files Browse the repository at this point in the history
)
  • Loading branch information
Sysix authored Nov 7, 2024
1 parent 8fba0b7 commit 1d67056
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/build-from-oxlint-config.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,10 @@ describe('buildFromOxlintConfig', () => {
'import/no-unused-modules': 'off',
},
});
expect('import/no-unused-modules' in rules).toBe(false);

expect(rules.length).toBe(1);
expect(rules[0].rules).not.toBeUndefined();
expect('import/no-unused-modules' in rules[0].rules!).toBe(false);
});
});

Expand Down

0 comments on commit 1d67056

Please sign in to comment.