From 2bd2560b1eb795c0462a241664271802cb502e60 Mon Sep 17 00:00:00 2001 From: Francesco Trotta Date: Sun, 13 Oct 2024 07:51:49 +0200 Subject: [PATCH] revert changes in `compat` tests --- packages/compat/tests/fixup-rules.js | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/packages/compat/tests/fixup-rules.js b/packages/compat/tests/fixup-rules.js index d23b976a..7132d21f 100644 --- a/packages/compat/tests/fixup-rules.js +++ b/packages/compat/tests/fixup-rules.js @@ -7,7 +7,6 @@ //----------------------------------------------------------------------------- import assert from "node:assert"; -import path from "node:path"; import { fixupRule, fixupPluginRules, @@ -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( @@ -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( @@ -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( @@ -508,7 +507,7 @@ describe("@eslint/backcompat", () => { }, }, { - filename: path.resolve("test.js"), + filename: "test.js", }, ); @@ -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(