Skip to content

Commit

Permalink
eslint: fix no-useless-escape in tests (wikimedia-gadgets#2131)
Browse files Browse the repository at this point in the history
* eslint: fix no-useless-escape in tests

manual fixes

* comma
  • Loading branch information
NovemLinguae authored Dec 13, 2024
1 parent 2a38b76 commit 58828bd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions tests/.eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@
"computed-property-spacing": "off",
"no-shadow": "off",
"object-curly-spacing": "off",
"space-in-parens": "off",

"no-useless-escape": "warn"
"space-in-parens": "off"
}
}
2 changes: 1 addition & 1 deletion tests/morebits.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ describe('methods', () => {
assert.strictEqual(Morebits.pageNameRegex(''), '', 'Empty');
assert.strictEqual(Morebits.pageNameRegex('a'), '[Aa]', 'Single character');
assert.strictEqual(Morebits.pageNameRegex('#'), '#', 'Single same-case');
assert.strictEqual(Morebits.pageNameRegex('*$, \{}(a) |.?+-^ [ ]'), '\\*\\$,[_ ]\\{\\}\\(a\\)[_ ]\\|\\.\\?\\+\\-\\^\[_ ]\\[[_ ]\\]', 'Special characters');
assert.strictEqual(Morebits.pageNameRegex('*$, {}(a) |.?+-^ [ ]'), '\\*\\$,[_ ]\\{\\}\\(a\\)[_ ]\\|\\.\\?\\+\\-\\^[_ ]\\[[_ ]\\]', 'Special characters');
});
test('namespaceRegex', () => {
assert.strictEqual(Morebits.namespaceRegex([6]), '(?:[Ff][Ii][Ll][Ee]|[Ii][Mm][Aa][Gg][Ee])', 'Files');
Expand Down

0 comments on commit 58828bd

Please sign in to comment.