Skip to content

Commit f2c7b41

Browse files
committed
fix lint errors
1 parent 6739c2e commit f2c7b41

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

lib/helpers/expect-helpers.js

+1
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ function convertExpectToShould (expectNode, context) {
6767
}
6868

6969
let assertionWithExpectString = sourceCode.getText(assertion).replace(/\n/g, '')
70+
// eslint-disable-next-line
7071
let [_, isNegated, assertionWithoutExpectString] = assertionWithExpectString.match(expectRegexp)
7172
let assertionString = isNegated ? `not.${assertionWithoutExpectString}` : assertionWithoutExpectString
7273

lib/rules/no-useless-then-or-should.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ module.exports = {
8888
if (['cy.then', 'cy.should'].includes(sourceCode.getText(callExpressionNode.callee))) {
8989
replacementString = commandStatementsCode
9090
} else {
91-
replacementString = `${sourceCode.getText(callExpressionNode.callee.object) };${ commandStatementsCode}`
91+
replacementString = `${sourceCode.getText(callExpressionNode.callee.object)};${commandStatementsCode}`
9292
}
9393

9494
return fixer.replaceText(callExpressionNode, replacementString)

0 commit comments

Comments
 (0)