amqp-wrapper
Advanced tools
Comparing version 7.0.0-es6.0 to 7.0.0-es6.1
@@ -5,4 +5,4 @@ async function bindRoutingKeys (channel, exchange, queueName, keys = []) { | ||
: keys; | ||
for (let routingKey in routingKeys) { | ||
await channel.bindQueue(queueName, exchange, routingKey); | ||
for (let i in routingKeys) { | ||
await channel.bindQueue(queueName, exchange, routingKeys[i]); | ||
} | ||
@@ -9,0 +9,0 @@ } |
{ | ||
"name": "amqp-wrapper", | ||
"version": "7.0.0-es6.0", | ||
"version": "7.0.0-es6.1", | ||
"engines": { | ||
@@ -42,3 +42,4 @@ "node": ">= 8" | ||
"semistandard": "^12.0.1", | ||
"sinon": "^7.3.2" | ||
"sinon": "^7.3.2", | ||
"sinon-chai": "^3.3.0" | ||
}, | ||
@@ -45,0 +46,0 @@ "semistandard": { |
@@ -51,2 +51,3 @@ const SandboxedModule = require('sandboxed-module'); | ||
// Bind the consume queue, and its dead letter queue. | ||
expect(amqpLibMock.bindQueueSpy).to.have.been.calledWith(config.good.queue.name, config.good.exchange, config.good.queue.routingKey); | ||
expect(amqpLibMock.bindQueueSpy.callCount).to.equal(2); | ||
@@ -53,0 +54,0 @@ }); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
22785
14
389
10