@mojaloop/central-services-shared
Advanced tools
Comparing version 3.7.0-snapshot to 3.7.1-snapshot
{ | ||
"name": "@mojaloop/central-services-shared", | ||
"version": "3.7.0-snapshot", | ||
"version": "3.7.1-snapshot", | ||
"description": "Shared code for central services", | ||
@@ -41,3 +41,3 @@ "main": "src/index.js", | ||
"istanbul": "1.1.0-alpha.1", | ||
"pre-commit": "^1.2.2", | ||
"pre-commit": "1.2.2", | ||
"sinon": "4.5.0", | ||
@@ -44,0 +44,0 @@ "standard": "10.0.3", |
@@ -217,6 +217,3 @@ /***** | ||
this._producer.on('delivery-report', (error, report) => { | ||
if (error) { | ||
logger.error(error) | ||
} | ||
this._producer.on('delivery-report', (report) => { | ||
logger.debug('DeliveryReport: ' + JSON.stringify(report)) | ||
@@ -223,0 +220,0 @@ }) |
@@ -103,14 +103,17 @@ /***** | ||
assert.ok(ConsumerSpy.calledOnce, 'Consumer constructor called once') | ||
ConsumerSpy.restore() | ||
assert.end() | ||
}) | ||
// consumerTests.test('Test Consumer::constructor - no config', (assert) => { | ||
// try { | ||
// var c = new Consumer(topicsList, null) | ||
// } catch (error) { | ||
// Logger.error(error) | ||
// assert.equals(error.message.toString(), 'missing a config object') | ||
// assert.end() | ||
// } | ||
// }) | ||
consumerTests.test('Test Consumer::constructor - no config', (assert) => { | ||
try { | ||
var c = new Consumer(topicsList, {}) | ||
assert.ok(c, 'Consumer instance created') | ||
assert.end() | ||
} catch (error) { | ||
Logger.error(error) | ||
assert.equals(error.message.toString(), 'missing a config object') | ||
assert.end() | ||
} | ||
}) | ||
@@ -117,0 +120,0 @@ consumerTests.test('Test Consumer::constructor - no params', (assert) => { |
Sorry, the diff of this file is not supported yet
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
176033
0