Skip to content

Commit

Permalink
expand statsd.js test coverage to 100%
Browse files Browse the repository at this point in the history
  • Loading branch information
lazycoder9 committed Oct 11, 2017
1 parent 4fb296d commit 4fecfde
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions utils/statsd_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,16 @@
'use strict';

const assert = require('chai').assert
, StatsD = require('node-statsd')
, statsd = require('./statsd');

describe('statsd Tests', () => {
it('should return an object', () => {
assert.isObject(statsd);
assert.isFunction(statsd.create);
});

it('statsd.create should return StatsD object', () => {
assert.isTrue(statsd.create({}) instanceof StatsD);
});
});

0 comments on commit 4fecfde

Please sign in to comment.