Removing undefined

This commit is contained in:
Mathew Kurian 2016-02-09 19:00:35 -06:00
parent 5fe390e7c2
commit b76a47db8f
4 changed files with 10 additions and 2 deletions

View file

@ -129,6 +129,10 @@ var _class = function () {
transient.callsite = _this.callSite();
}
if (!args.length) {
args = [''];
}
// reset before async
_this.reset();

View file

@ -113,7 +113,6 @@ var Inspector = function () {
}, {
key: 'inspectArguments',
value: function inspectArguments(data) {
if (!data.length) return '';
return this.format.apply(this, (0, _toConsumableArray3.default)(data.args));
}
}, {

View file

@ -77,6 +77,10 @@ export default class {
transient.callsite = this.callSite();
}
if (!args.length){
args = [''];
}
// reset before async
this.reset();

View file

@ -10,7 +10,8 @@ describe('Basic Scribe', ()=> {
it('should print objects to terminal', done => {
Promise.all([
console.tag('object').log('Inspect object', {test: true}),
console.tag('object').log('Inspect object', console)
console.tag('object').log('Inspect object', console),
console.log()
]).then(() => done());
});