Skip to content

Node.js based forum software built for the modern web

lint: fix lint

Barış Soner Uşaklıbda3ae116b4c
diff --git a/src/controllers/search.js b/src/controllers/search.js
index e3b7930771..5a9a38d2ee 100644
--- a/src/controllers/search.js
+++ b/src/controllers/search.js
@@ -111,7 +111,7 @@ searchController.search = async function (req, res, next) {
},
sort: {
active: !!(data.sortBy && data.sortBy !== 'relevance'),
- label: await tx.translate(`search:sort-by-${data.sortBy}-${data.sortDirection}`, userLang)
+ label: await tx.translate(`search:sort-by-${data.sortBy}-${data.sortDirection}`, userLang),
},
users: {
active: !!(data.postedBy),
diff --git a/test/translator.js b/test/translator.js
index 076c4998ab..6df22ba3fa 100644
--- a/test/translator.js
+++ b/test/translator.js
@@ -352,22 +352,24 @@ describe('Translator static methods', () => {
});
// TODO: fixing this causes other issues with escaping tx strings
- // it('should not escape markdown links', (done) => {
- // assert.strictEqual(
- // Translator.escape('[link text [test]](https://example.org)'),
- // '[link text [test]](https://example.org)'
- // );
- // done();
- // });
+ /*
+ it('should not escape markdown links', (done) => {
+ assert.strictEqual(
+ Translator.escape('[link text [test]](https://example.org)'),
+ '[link text [test]](https://example.org)'
+ );
+ done();
+ });
// TODO: fixing this causes other issues with escaping tx strings
- // it('should not unescape markdown links', (done) => {
- // assert.strictEqual(
- // Translator.unescape('&lsqblink text &lsqbtest]](https://example.org)'),
- // '&lsqblink text &lsqbtest]](https://example.org)'
- // );
- // done();
- // });
+ it('should not unescape markdown links', (done) => {
+ assert.strictEqual(
+ Translator.unescape('&lsqblink text &lsqbtest]](https://example.org)'),
+ '&lsqblink text &lsqbtest]](https://example.org)'
+ );
+ done();
+ });
+ */
});
describe('.compile', () => {