We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Somente tests where Sinon is imported with the name "Sinon" instead "sinon" returns Test without assertions is not allowed.
Test without assertions is not allowed.
e.g.
const rule = require('../../../lib/rules/asserts-limit'); const { RuleTester } = require('eslint'); const ruleTester = new RuleTester({ env: { es6: true } }); ruleTester.run('asserts-limit', rule, { valid: [ { only: true, code: `it('1234', function () { Sinon.assert.calledOn(sp, {}); })` } ], invalid: [], });
It appears that changing lib/utils/node.js#L36 from node.object.name === 'sinon' to String(node.object.name).toLowerCase() === 'sinon' solves.
node.object.name === 'sinon'
String(node.object.name).toLowerCase() === 'sinon'
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Somente tests where Sinon is imported with the name "Sinon" instead "sinon" returns
Test without assertions is not allowed.
e.g.
It appears that changing lib/utils/node.js#L36
from
node.object.name === 'sinon'
toString(node.object.name).toLowerCase() === 'sinon'
solves.The text was updated successfully, but these errors were encountered: