fix eslint errors

This commit is contained in:
spalger
2016-05-19 07:52:01 -07:00
parent 939cca84c6
commit 68a8f712c8
47 changed files with 165 additions and 156 deletions

View File

@ -18,4 +18,4 @@ exports.make = function () {
};
return stubber;
};
};

View File

@ -9,4 +9,4 @@ module.exports = function expectSubObject(obj, subObj) {
expect(obj).property(prop, val);
}
});
};
};

View File

@ -22,7 +22,7 @@ var log = (function () {
}
locked(str);
};
})();
}());
var integration = _.find(process.argv, function (arg) { return arg.indexOf('test/integration') > -1; });
var unit = _.find(process.argv, function (arg) { return arg.indexOf('test/unit') > -1; });
@ -86,7 +86,7 @@ function JenkinsReporter(runner) {
stack.shift();
});
runner.on('fail', function (test, err) {
runner.on('fail', function (test) {
if ('hook' === test.type) {
runner.emit('test end', test);
}

View File

@ -41,7 +41,7 @@ function makeJUnitXml(runnerName, testDetails) {
timestamp: moment(suiteInfo.start).toJSON(),
hostname: 'localhost',
tests: (suiteInfo.results && suiteInfo.results.length) || 0,
failures: _.where(suiteInfo.results, {pass: false}).length,
failures: _.where(suiteInfo.results, { pass: false }).length,
errors: 0,
time: suiteInfo.time / 1000
});
@ -89,7 +89,7 @@ function makeJUnitXml(runnerName, testDetails) {
giveOutput(suite, suiteInfo);
});
return suites.toString({ pretty: true});
return suites.toString({ pretty: true });
}
function giveOutput(el, info) {
@ -103,4 +103,4 @@ function giveOutput(el, info) {
if (err) {
el.ele('system-err', {}).cdata(chalk.stripColor(err));
}
}
}

View File

@ -1,3 +1,4 @@
/* eslint-disable import/no-unresolved */
var express = require('express');
var http = require('http');
var fs = require('fs');
@ -31,6 +32,8 @@ testFiles.build = fs.readdirSync(browserBuildsDir)
if (file.substr(-3) === '.js') {
return browserBuildsDir + '/' + file;
}
return null
})
.filter(Boolean);
@ -73,7 +76,7 @@ function bundleTests(name) {
// create a route that just rends a specific file (like a symlink or something)
function sendFile(file) {
return function (req, res, next) {
return function (req, res) {
res.sendfile(file);
};
}
@ -111,4 +114,4 @@ app
http.createServer(app).listen(8000, function () {
console.log('listening on port 8000');
});
});

View File

@ -3,4 +3,4 @@
module.exports = JSON.parse(new Buffer(
'eyJ1c2VyIjoiZWxhc3RpY3NlYXJjaC1qcyIsImtleSI6IjI0ZjQ5ZTA3LWQ4MmYtNDA2Ny04NTRlLWQ4MTVlYmQxNWU0NiJ9',
'base64'
).toString('utf8'));
).toString('utf8'));