From 7429b5d4ed642a580536a0a742515e3b1a56459e Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Tue, 3 Mar 2026 12:06:50 -0500 Subject: [PATCH] test: set minimumtitlelength for test --- test/posts.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/test/posts.js b/test/posts.js index 601774cd9e..76627c3c2b 100644 --- a/test/posts.js +++ b/test/posts.js @@ -384,7 +384,10 @@ describe('Post\'s', () => { let pid; let replyPid; let tid; - before((done) => { + before(function () { + this.minimumTitleLength = meta.config.minimumTitleLength; + meta.config.minimumTitleLength = 3; + topics.post({ uid: voterUid, cid: cid, @@ -408,6 +411,10 @@ describe('Post\'s', () => { }); }); + after(function () { + meta.config.minimumTitleLength = this.minimumTitleLength; + }); + it('should error if user is not logged in', async () => { try { await apiPosts.edit({ uid: 0 }, { pid: pid, content: 'gg' });