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' });