Skip to content

Commit

Permalink
chore: apply prettier -w
Browse files Browse the repository at this point in the history
  • Loading branch information
aladdin-add committed Dec 8, 2023
1 parent 5c0d205 commit 6d3eb81
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions tests/lib/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -1099,8 +1099,14 @@ describe('utils', () => {
loc: false,
range: false,
}).body[0].expression;
const parsedArgs = node.arguments
const context = { sourceCode: { getScope() { return {} } } }; // mock object
const parsedArgs = node.arguments;
const context = {
sourceCode: {
getScope() {
return {};
},
},
}; // mock object
const reportInfo = utils.getReportInfo(node, context);

assert.deepEqual(reportInfo, CASES.get(args)(parsedArgs));
Expand Down Expand Up @@ -1273,7 +1279,13 @@ describe('utils', () => {
ecmaVersion: 6,
range: true,
});
const context = { sourceCode: { getScope() { return {} } } }; // mock object
const context = {
sourceCode: {
getScope() {
return {};
},
},
}; // mock object
const reportNode = ast.body[0].expression;
const reportInfo = utils.getReportInfo(reportNode, context);
const data = utils.collectReportViolationAndSuggestionData(reportInfo);
Expand Down

0 comments on commit 6d3eb81

Please sign in to comment.