forked from mirrors/Scribe.js
Removing undefined
This commit is contained in:
parent
5fe390e7c2
commit
b76a47db8f
4 changed files with 10 additions and 2 deletions
4
dist/readers/Console.js
vendored
4
dist/readers/Console.js
vendored
|
@ -129,6 +129,10 @@ var _class = function () {
|
|||
transient.callsite = _this.callSite();
|
||||
}
|
||||
|
||||
if (!args.length) {
|
||||
args = [''];
|
||||
}
|
||||
|
||||
// reset before async
|
||||
_this.reset();
|
||||
|
||||
|
|
1
dist/transforms/Inspector.js
vendored
1
dist/transforms/Inspector.js
vendored
|
@ -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));
|
||||
}
|
||||
}, {
|
||||
|
|
|
@ -77,6 +77,10 @@ export default class {
|
|||
transient.callsite = this.callSite();
|
||||
}
|
||||
|
||||
if (!args.length){
|
||||
args = [''];
|
||||
}
|
||||
|
||||
// reset before async
|
||||
this.reset();
|
||||
|
||||
|
|
|
@ -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());
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue