From c621b1064b95d741e3b84ff21e0781ce64077826 Mon Sep 17 00:00:00 2001 From: Milos Djermanovic Date: Tue, 15 Oct 2024 04:24:47 +0200 Subject: [PATCH] test: Add `data` in tests for no-duplicate-keys rule (#40) --- tests/rules/no-duplicate-keys.test.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/rules/no-duplicate-keys.test.js b/tests/rules/no-duplicate-keys.test.js index 59b8779..5cf4d21 100644 --- a/tests/rules/no-duplicate-keys.test.js +++ b/tests/rules/no-duplicate-keys.test.js @@ -41,6 +41,7 @@ ruleTester.run("no-duplicate-keys", rule, { errors: [ { messageId: "duplicateKey", + data: { key: "foo" }, line: 1, column: 12, endLine: 1, @@ -58,6 +59,7 @@ ruleTester.run("no-duplicate-keys", rule, { errors: [ { messageId: "duplicateKey", + data: { key: "foo" }, line: 5, column: 5, endLine: 5, @@ -71,6 +73,7 @@ ruleTester.run("no-duplicate-keys", rule, { errors: [ { messageId: "duplicateKey", + data: { key: "foo" }, line: 1, column: 10, endLine: 1, @@ -89,6 +92,7 @@ ruleTester.run("no-duplicate-keys", rule, { errors: [ { messageId: "duplicateKey", + data: { key: "foo" }, line: 5, column: 5, endLine: 5, @@ -102,6 +106,7 @@ ruleTester.run("no-duplicate-keys", rule, { errors: [ { messageId: "duplicateKey", + data: { key: "foo" }, line: 1, column: 12, endLine: 1, @@ -120,6 +125,7 @@ ruleTester.run("no-duplicate-keys", rule, { errors: [ { messageId: "duplicateKey", + data: { key: "foo" }, line: 5, column: 5, endLine: 5,