mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2025-12-16 22:10:13 +01:00
Address new violations of @stylistic/no-extra-parens.
This commit is contained in:
parent
4f6b17934a
commit
61a9c2427e
5 changed files with 7 additions and 7 deletions
|
|
@ -86,7 +86,7 @@ test("filterByPredicate/filterByTypes", async(t) => {
|
|||
t.plan(1);
|
||||
const tokens = await testTokens;
|
||||
const byPredicate = filterByPredicate(tokens, () => true);
|
||||
const allTypes = new Set(byPredicate.map(((token) => token.type)));
|
||||
const allTypes = new Set(byPredicate.map((token) => token.type));
|
||||
const byTypes = filterByTypes(tokens, [ ...allTypes.values() ], true);
|
||||
t.deepEqual(byPredicate, byTypes);
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue