mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-12-24 09:20:32 +01:00
ESlint no-plusplus
and no-empty, space-unary-ops
This commit is contained in:
@@ -366,7 +366,7 @@ describe('Post\'s', function () {
|
||||
|
||||
it('should error with too many tags', function (done) {
|
||||
var tags = [];
|
||||
for(var i = 0; i < meta.config.maximumTagsPerTopic + 1; ++i) {
|
||||
for(var i = 0; i < meta.config.maximumTagsPerTopic + 1; i += 1) {
|
||||
tags.push('tag' + i);
|
||||
}
|
||||
socketPosts.edit({uid: voterUid}, {pid: pid, content: 'edited post content', tags: tags}, function (err) {
|
||||
|
||||
Reference in New Issue
Block a user