summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Early <alexander.early@gmail.com>2016-05-31 16:05:17 -0700
committerAlexander Early <alexander.early@gmail.com>2016-05-31 16:05:17 -0700
commit89f8fe4c3874e421f10c5d9ed5e9e1df98f8aaea (patch)
tree76604ed72a0a433535ab14283b4b317ee9a92838
parent44b41a0511dd0da6ce246e138b7b336f4b86788f (diff)
downloadasync-89f8fe4c3874e421f10c5d9ed5e9e1df98f8aaea.tar.gz
fix lint errors
-rw-r--r--lib/mapValuesLimit.js4
-rw-r--r--mocha_test/mapValues.js24
2 files changed, 14 insertions, 14 deletions
diff --git a/lib/mapValuesLimit.js b/lib/mapValuesLimit.js
index a1a43a1..762b871 100644
--- a/lib/mapValuesLimit.js
+++ b/lib/mapValuesLimit.js
@@ -26,8 +26,8 @@ export default function mapValuesLimit(obj, limit, iteratee, callback) {
if (err) return next(err);
newObj[key] = result;
next();
- })
+ });
}, function (err) {
callback(err, newObj);
- })
+ });
}
diff --git a/mocha_test/mapValues.js b/mocha_test/mapValues.js
index 3938be2..44eb27d 100644
--- a/mocha_test/mapValues.js
+++ b/mocha_test/mapValues.js
@@ -7,12 +7,12 @@ describe('mapValues', function () {
context('mapValuesLimit', function () {
it('basics', function (done) {
- var running = 0
+ var running = 0;
var concurrency = {
a: 2,
b: 2,
c: 1
- }
+ };
async.mapValuesLimit(obj, 2, function (val, key, next) {
running++;
async.setImmediate(function () {
@@ -21,9 +21,9 @@ describe('mapValues', function () {
next(null, key + val);
});
}, function (err, result) {
- expect(running).to.equal(0)
+ expect(running).to.equal(0);
expect(err).to.eql(null);
- expect(result).to.eql({a: 'a1', b: 'b2', c: 'c3'})
+ expect(result).to.eql({a: 'a1', b: 'b2', c: 'c3'});
done();
});
});
@@ -44,12 +44,12 @@ describe('mapValues', function () {
context('mapValues', function () {
it('basics', function (done) {
- var running = 0
+ var running = 0;
var concurrency = {
a: 3,
b: 2,
c: 1
- }
+ };
async.mapValues(obj, function (val, key, next) {
running++;
async.setImmediate(function () {
@@ -58,9 +58,9 @@ describe('mapValues', function () {
next(null, key + val);
});
}, function (err, result) {
- expect(running).to.equal(0)
+ expect(running).to.equal(0);
expect(err).to.eql(null);
- expect(result).to.eql({a: 'a1', b: 'b2', c: 'c3'})
+ expect(result).to.eql({a: 'a1', b: 'b2', c: 'c3'});
done();
});
});
@@ -68,12 +68,12 @@ describe('mapValues', function () {
context('mapValuesSeries', function () {
it('basics', function (done) {
- var running = 0
+ var running = 0;
var concurrency = {
a: 1,
b: 1,
c: 1
- }
+ };
async.mapValuesSeries(obj, function (val, key, next) {
running++;
async.setImmediate(function () {
@@ -82,9 +82,9 @@ describe('mapValues', function () {
next(null, key + val);
});
}, function (err, result) {
- expect(running).to.equal(0)
+ expect(running).to.equal(0);
expect(err).to.eql(null);
- expect(result).to.eql({a: 'a1', b: 'b2', c: 'c3'})
+ expect(result).to.eql({a: 'a1', b: 'b2', c: 'c3'});
done();
});
});