From 621c124c74ede7982f12fe8f3b8bf007109aa51d Mon Sep 17 00:00:00 2001 From: "sagargurung1001@gmail.com" Date: Mon, 4 Jul 2022 14:40:14 +0545 Subject: [PATCH] Added more test cases and adjusted regex Feature: keyword as text --- server/src/regex.js | 2 +- .../tests/unit/rules/only_one_feature.test.js | 19 ++++++------------- 2 files changed, 7 insertions(+), 14 deletions(-) diff --git a/server/src/regex.js b/server/src/regex.js index 23fd0fb..e81d403 100644 --- a/server/src/regex.js +++ b/server/src/regex.js @@ -1,6 +1,6 @@ module.exports = { globalMatch: { - feature: /(? { - const problems = Rule.run('Feature: Feature name\n This Feature: is not a keyword'); - const expected = [] - assert.deepEqual(problems, expected); - }); -}); - function buildLintInfo(startIndex, endIndex) { return { startIndex,