Skip to content

Commit

Permalink
Convert t.log arguments object into array
Browse files Browse the repository at this point in the history
  • Loading branch information
kugtong33 committed Jan 24, 2018
1 parent 1214212 commit 20890be
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/assert.js
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,8 @@ function wrapAssertions(callbacks) {
}
},

log(...args) {
log() {
const args = Array.prototype.slice.call(arguments);
args.forEach((value, index) => {
args[index] = typeof value === 'string' ?
value : concordance.format(value, concordanceOptions);
Expand Down

0 comments on commit 20890be

Please sign in to comment.