Skip to content

Commit

Permalink
refactor: Fix ESLint
Browse files Browse the repository at this point in the history
  • Loading branch information
maxreichmann committed Apr 10, 2024
1 parent b2fde65 commit d8364d2
Showing 1 changed file with 13 additions and 19 deletions.
32 changes: 13 additions & 19 deletions test/lib/linter/UI5YamlLinter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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`);
});

0 comments on commit d8364d2

Please sign in to comment.