mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-05-06 23:56:04 +02:00
ESlint keyword-spacing, no-multi-spaces
This commit is contained in:
@@ -9,7 +9,7 @@
|
||||
|
||||
var async = require('async');
|
||||
var winston = require('winston');
|
||||
var path = require('path');
|
||||
var path = require('path');
|
||||
var nconf = require('nconf');
|
||||
var url = require('url');
|
||||
var errorText;
|
||||
|
||||
@@ -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 += 1) {
|
||||
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) {
|
||||
|
||||
@@ -505,7 +505,7 @@ describe('Topic\'s', function () {
|
||||
var topics = results.topics;
|
||||
var topic;
|
||||
var i;
|
||||
for(i = 0; i < topics.length; i += 1) {
|
||||
for (i = 0; i < topics.length; i += 1) {
|
||||
if (parseInt(topics[i].tid, 10) === parseInt(newTid, 10)) {
|
||||
assert.equal(false, topics[i].unread, 'ignored topic was marked as unread in recent list');
|
||||
return done();
|
||||
|
||||
@@ -164,9 +164,9 @@ describe('Utility Methods', function () {
|
||||
var days = utils.getDaysArray();
|
||||
var months = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'];
|
||||
var index = 0;
|
||||
for(var x = 29; x >= 0; x -= 1) {
|
||||
for (var x = 29; x >= 0; x -= 1) {
|
||||
var tmpDate = new Date(currentDay - (1000 * 60 * 60 * 24 * x));
|
||||
assert.equal(months[tmpDate.getMonth()] + ' ' + tmpDate.getDate(), days[index]);
|
||||
assert.equal(months[tmpDate.getMonth()] + ' ' + tmpDate.getDate(), days[index]);
|
||||
index += 1;
|
||||
}
|
||||
done();
|
||||
|
||||
Reference in New Issue
Block a user