Skip to content

Commit

Permalink
Merge pull request #464 from geritol/master
Browse files Browse the repository at this point in the history
added test for statsd log
  • Loading branch information
designfrontier committed Oct 12, 2017
2 parents 7b1c1d9 + 5f35872 commit d827216
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions utils/index_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,5 +69,24 @@ describe('Utils Tests', () => {
it('utils should have a setup function', () => {
assert.isFunction(utils.setup);
});

it('utils should log info about statsd', () => {
let logMessage;
const config = {
log: {
info: (msg) => {
logMessage = msg;
}
}
, statsd: {
host: 'test'
, port: '8080'
}
};

utils.setup(config);
assert.include(logMessage, config.statsd.host);
assert.include(logMessage, config.statsd.port);
});
});
});

0 comments on commit d827216

Please sign in to comment.