Skip to content

Commit

Permalink
fix(hconsole): remove unused method
Browse files Browse the repository at this point in the history
* * *

This commit was sponsored by The Hoodie Firm.
You can hire The Hoodie Firm:

http://go.hood.ie/thehoodiefirm
  • Loading branch information
boennemann committed Aug 11, 2015
1 parent ff4767f commit af06cfc
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 21 deletions.
16 changes: 0 additions & 16 deletions lib/utils/hconsole.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,22 +4,6 @@

var clc = require('cli-color')

/**
* Wraps a callback with a message to print on success
* (no error argument passed to it)
*
* @param {String} msg - the message to display on success
* @param {Function} fn - the callback to wrap
* @api public
*/

exports.announce = function (msg, fn) {
return function (err) {
if (!err) console.log(msg)
return fn.apply(this, arguments)
}
}

/**
* Print a new line when processing a list of async functions. Only works for
* iterators that rely on side effects (applyAll, series, parallel, each, etc),
Expand Down
6 changes: 1 addition & 5 deletions test/unit/hconsole.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,7 @@ var hconsole = require('../../lib/utils/hconsole')
require('tap').mochaGlobals()
describe('hconsole', function () {
it('should expose n number of properties', function () {
expect(_.size(hconsole)).to.eql(5)
})

it('should have a announce property', function () {
expect(hconsole).to.have.property('announce')
expect(_.size(hconsole)).to.eql(4)
})

it('should have a linebreak property', function () {
Expand Down

0 comments on commit af06cfc

Please sign in to comment.