-
Notifications
You must be signed in to change notification settings - Fork 176
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add quick fix for S3415 ('inverted-assertion-arguments') #3046
Conversation
The newly added test file should be dropped once #3047 is done, and the quick fix assertions should be moved to the comment-based test file. |
import { rule } from 'rules/inverted-assertion-arguments'; | ||
import { RuleTester } from 'eslint'; | ||
|
||
const ruleTester = new RuleTester({ parserOptions: { ecmaVersion: 2018, sourceType: 'module' } }); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
let's add comment that this rule is tested in another file and that here we just testing fixes.
const assert = require('chai').should(); | ||
describe('suite', () => { | ||
it('test', () => { | ||
should.fail(42, aNumber); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tbh instead of testing different APIs, I would focus on more complex expressions (multiline, spaces)
SonarQube Quality Gate |
Fixes #3015