Skip to content

Commit

Permalink
test: fix
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-akait committed Aug 6, 2024
1 parent 5069966 commit de0df3b
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 11 deletions.
16 changes: 8 additions & 8 deletions __tests__/fixtures/good.js
Original file line number Diff line number Diff line change
Expand Up @@ -356,9 +356,9 @@ handler();

try {
render();
} catch (error) {
} catch (err) {
render({
error,
err,
});
}

Expand Down Expand Up @@ -386,10 +386,10 @@ async function fetchJson(url) {
const text = await request.text();

return JSON.parse(text);
} catch (error) {
} catch (err) {
multiply(2, 1, 2, 3);

throw error;
throw err;
}
}

Expand Down Expand Up @@ -592,12 +592,12 @@ Promise.all([Promise.resolve("a"), "b", Promise.resolve("c")])

return 1;
})
.catch((error) => {
throw error;
.catch((err) => {
throw err;
})
.then(() => Promise.race([Promise.resolve("c"), Promise.resolve("d")]))
.catch((error) => {
throw error;
.catch((err) => {
throw err;
});

class Base {
Expand Down
2 changes: 1 addition & 1 deletion __tests__/index.test.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ test("should load the 'ava' preset", async (t) => {
t.is(report[0].warningCount, 0, "eslint report without warnings");
});

test.only("should load the 'esnext' preset", async (t) => {
test("should load the 'esnext' preset", async (t) => {
const cli = new eslint.ESLint({
ignore: false,
useEslintrc: false,
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
},
"devDependencies": {
"@ava/babel": "^2.0.0",
"@stylistic/eslint-plugin": "^2.4.0",
"@stylistic/eslint-plugin": "^2.6.1",
"@types/confusing-browser-globals": "^1.0.3",
"@types/eslint": "^8.56.11",
"ava": "^6.1.3",
Expand Down

0 comments on commit de0df3b

Please sign in to comment.