Skip to content

Commit

Permalink
semistandard fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Tim Allen committed Aug 2, 2019
1 parent bdb3d51 commit 3cf14bf
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
12 changes: 6 additions & 6 deletions test/amqp.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@ describe('AMQP', function () {
done();
});
it('should throw with no url', function (done) {
expect(function () { AMQP({exchange: ''}); }).to
expect(function () { AMQP({ exchange: '' }); }).to
.throwError('amqp-wrapper: Invalid config');
done();
});
it('should throw with no exchange', function (done) {
expect(function () { AMQP({url: ''}); }).to
expect(function () { AMQP({ url: '' }); }).to
.throwError('amqp-wrapper: Invalid config');
done();
});
Expand Down Expand Up @@ -122,7 +122,7 @@ describe('AMQP', function () {
if (err) {
return done(err);
}
amqp.publish('myqueue', {woo: 'test'}, {}, done);
amqp.publish('myqueue', { woo: 'test' }, {}, done);
});
});
});
Expand All @@ -133,7 +133,7 @@ describe('AMQP', function () {
done();
};

var amqpLibMock = require('./amqplibmock')({overrides: {ack: ack}});
var amqpLibMock = require('./amqplibmock')({ overrides: { ack: ack } });

var mockedAMQP = SandboxedModule.require('../amqp', {
requires: {
Expand Down Expand Up @@ -162,7 +162,7 @@ describe('AMQP', function () {

var amqpLibMock = require('./amqplibmock')({
messageToDeliver: 'nonvalidjson',
overrides: {nack: nack}
overrides: { nack: nack }
});

var mockedAMQP = SandboxedModule.require('../amqp', {
Expand All @@ -189,7 +189,7 @@ describe('AMQP', function () {
done();
};

var amqpLibMock = require('./amqplibmock')({overrides: {nack: nack}});
var amqpLibMock = require('./amqplibmock')({ overrides: { nack: nack } });

var mockedAMQP = SandboxedModule.require('../amqp', {
requires: {
Expand Down
4 changes: 2 additions & 2 deletions test/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ module.exports = {
queue: {
name: 'myconsumequeue',
routingKey: 'myRoutingQueue',
options: {deadLetterExchange: 'wow'}
options: { deadLetterExchange: 'wow' }
}
},
noRoutingKey: {
Expand All @@ -22,7 +22,7 @@ module.exports = {
queue: {
name: 'myconsumequeue',
routingKey: ['myRoutingKey', 'myRoutingKey2'],
options: {deadLetterExchange: 'wow'}
options: { deadLetterExchange: 'wow' }
}
}
};
Expand Down

0 comments on commit 3cf14bf

Please sign in to comment.