Skip to content

Commit

Permalink
revert changes in compat tests
Browse files Browse the repository at this point in the history
  • Loading branch information
fasttime committed Oct 13, 2024
1 parent 193ece2 commit 2bd2560
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions packages/compat/tests/fixup-rules.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
//-----------------------------------------------------------------------------

import assert from "node:assert";
import path from "node:path";
import {
fixupRule,
fixupPluginRules,
Expand Down Expand Up @@ -134,7 +133,7 @@ describe("@eslint/backcompat", () => {
const linter = new Linter();
const code = "var foo = () => 123; function bar() { return 123; }";
const messages = linter.verify(code, config, {
filename: path.resolve("test.js"),
filename: "test.js",
});

assert.deepStrictEqual(
Expand Down Expand Up @@ -204,7 +203,7 @@ describe("@eslint/backcompat", () => {
const code =
"var foo = () => 123; function bar() { return 123; }";
const messages = linter.verify(code, config, {
filename: path.resolve("test.js"),
filename: "test.js",
});

assert.deepStrictEqual(
Expand Down Expand Up @@ -284,7 +283,7 @@ describe("@eslint/backcompat", () => {
const code =
"var foo = () => 123; function bar() { for (const x of y) { foo(); } }";
const messages = linter.verify(code, config, {
filename: path.resolve("test.js"),
filename: "test.js",
});

assert.deepStrictEqual(
Expand Down Expand Up @@ -508,7 +507,7 @@ describe("@eslint/backcompat", () => {
},
},
{
filename: path.resolve("test.js"),
filename: "test.js",
},
);

Expand Down Expand Up @@ -642,7 +641,7 @@ describe("@eslint/backcompat", () => {
const code =
"var foo = () => 123; function bar() { return 123; }";
const messages = linter.verify(code, fixupConfigRules(config), {
filename: path.resolve("test.js"),
filename: "test.js",
});

assert.deepStrictEqual(
Expand Down

0 comments on commit 2bd2560

Please sign in to comment.