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();
|
transient.callsite = _this.callSite();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!args.length) {
|
||||||
|
args = [''];
|
||||||
|
}
|
||||||
|
|
||||||
// reset before async
|
// reset before async
|
||||||
_this.reset();
|
_this.reset();
|
||||||
|
|
||||||
|
|
1
dist/transforms/Inspector.js
vendored
1
dist/transforms/Inspector.js
vendored
|
@ -113,7 +113,6 @@ var Inspector = function () {
|
||||||
}, {
|
}, {
|
||||||
key: 'inspectArguments',
|
key: 'inspectArguments',
|
||||||
value: function inspectArguments(data) {
|
value: function inspectArguments(data) {
|
||||||
if (!data.length) return '';
|
|
||||||
return this.format.apply(this, (0, _toConsumableArray3.default)(data.args));
|
return this.format.apply(this, (0, _toConsumableArray3.default)(data.args));
|
||||||
}
|
}
|
||||||
}, {
|
}, {
|
||||||
|
|
|
@ -77,6 +77,10 @@ export default class {
|
||||||
transient.callsite = this.callSite();
|
transient.callsite = this.callSite();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!args.length){
|
||||||
|
args = [''];
|
||||||
|
}
|
||||||
|
|
||||||
// reset before async
|
// reset before async
|
||||||
this.reset();
|
this.reset();
|
||||||
|
|
||||||
|
|
|
@ -10,7 +10,8 @@ describe('Basic Scribe', ()=> {
|
||||||
it('should print objects to terminal', done => {
|
it('should print objects to terminal', done => {
|
||||||
Promise.all([
|
Promise.all([
|
||||||
console.tag('object').log('Inspect object', {test: true}),
|
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());
|
]).then(() => done());
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue