From d8364d2e7edcaa5313c0d6aaf985b2a602597d35 Mon Sep 17 00:00:00 2001 From: Max Reichmann Date: Wed, 10 Apr 2024 14:57:21 +0200 Subject: [PATCH] refactor: Fix ESLint --- test/lib/linter/UI5YamlLinter.ts | 32 +++++++++++++------------------- 1 file changed, 13 insertions(+), 19 deletions(-) diff --git a/test/lib/linter/UI5YamlLinter.ts b/test/lib/linter/UI5YamlLinter.ts index c7e6c82b2..15455012f 100644 --- a/test/lib/linter/UI5YamlLinter.ts +++ b/test/lib/linter/UI5YamlLinter.ts @@ -29,25 +29,19 @@ framework: // Test returned messages t.is(messages.length, 3, "Detection of 3 deprecated libraries expected"); - // Test each message - t.is(messages[0].ruleId, "ui5-linter-no-deprecated-api", - `RuleId is correct`); - t.is(messages[0].message, `Use of deprecated library 'sap.ca.scfld.md'`, - `Message is correct`); - t.is(messages[0].column, 7, `Column is correct`); - t.is(messages[0].line, 9, `Line is correct`); + // Test each message + t.is(messages[0].ruleId, "ui5-linter-no-deprecated-api", `RuleId is correct`); + t.is(messages[0].message, `Use of deprecated library 'sap.ca.scfld.md'`, `Message is correct`); + t.is(messages[0].column, 7, `Column is correct`); + t.is(messages[0].line, 9, `Line is correct`); - t.is(messages[1].ruleId, "ui5-linter-no-deprecated-api", - `RuleId is correct`); - t.is(messages[1].message, `Use of deprecated library 'sap.ca.ui'`, - `Message is correct`); - t.is(messages[1].column, 7, `Column is correct`); - t.is(messages[1].line, 10, `Line is correct`); + t.is(messages[1].ruleId, "ui5-linter-no-deprecated-api", `RuleId is correct`); + t.is(messages[1].message, `Use of deprecated library 'sap.ca.ui'`, `Message is correct`); + t.is(messages[1].column, 7, `Column is correct`); + t.is(messages[1].line, 10, `Line is correct`); - t.is(messages[2].ruleId, "ui5-linter-no-deprecated-api", - `RuleId is correct`); - t.is(messages[2].message, `Use of deprecated library 'sap.fe.common'`, - `Message is correct`); - t.is(messages[2].column, 7, `Column is correct`); - t.is(messages[2].line, 11, `Line is correct`); + t.is(messages[2].ruleId, "ui5-linter-no-deprecated-api", `RuleId is correct`); + t.is(messages[2].message, `Use of deprecated library 'sap.fe.common'`, `Message is correct`); + t.is(messages[2].column, 7, `Column is correct`); + t.is(messages[2].line, 11, `Line is correct`); });