Skip to content

Commit

Permalink
Remove constructor test from styling test file (#5672)
Browse files Browse the repository at this point in the history
  • Loading branch information
queengooborg authored Apr 3, 2020
1 parent c94fd75 commit 09dfeaa
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions test/linter/test-style.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,20 +95,6 @@ function processData(filename, logger) {
);
}

const constructorMatch = actual.match(
String.raw`"<code>([^)]*?)</code> constructor"`,
);
if (constructorMatch) {
logger.error(
chalk`{red → ${indexToPos(
actual,
constructorMatch.index,
)} – Use parentheses in constructor description ({yellow ${
constructorMatch[1]
}} → {green ${constructorMatch[1]}{bold ()}}).}`,
);
}

const hrefDoubleQuoteIndex = actual.indexOf('href=\\"');
if (hrefDoubleQuoteIndex >= 0) {
logger.error(
Expand Down

0 comments on commit 09dfeaa

Please sign in to comment.