ESlint keyword-spacing, no-multi-spaces

This commit is contained in:
Peter Jaszkowiak
2017-02-18 01:52:56 -07:00
parent a5a3f3089a
commit 604358ecc4
116 changed files with 210 additions and 210 deletions

View File

@@ -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;

View File

@@ -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) {

View File

@@ -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();

View File

@@ -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();