Skip to content

Commit

Permalink
minor
Browse files Browse the repository at this point in the history
  • Loading branch information
suyashpatil78 committed Apr 29, 2024
1 parent 3e8f3b6 commit e306edb
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ module.exports = {
const match = nodeText.match(/\.toBe\((null)\)|\.toEqual\((null)\)/);
if (match) {
const start = node.callee.property.range[0];
const end = node.callee.property.range[1] + 5; // Adjust end position
const end = node.callee.property.range[1] + 6; // Adjust end position
return fixer.replaceTextRange([start, end], replacementText);
}

Expand Down Expand Up @@ -119,7 +119,7 @@ module.exports = {
const match = nodeText.match(/\.toBe\((NaN)\)|\.toEqual\((NaN)\)/);
if (match) {
const start = node.callee.property.range[0];
const end = node.callee.property.range[1] + 6; // Adjust end position
const end = node.callee.property.range[1] + 5; // Adjust end position
return fixer.replaceTextRange([start, end], replacementText);
}

Expand Down

0 comments on commit e306edb

Please sign in to comment.