Skip to content

Commit

Permalink
Fix xo complaints
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkGriffiths committed Nov 5, 2018
1 parent 1b79faa commit 4db5237
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -289,6 +289,7 @@ const consoleFactory = function (options = {}) {
* Pretty prints object, similar to OS X's plutil -p. Defaults to zero depth.
* @param {Object} obj The Object to print.
* @param {Number} depth How many object levels to print.
* @param {Boolean} color Print output in color, of supported.
* @example
* console.pretty(console)
*
Expand Down
5 changes: 3 additions & 2 deletions test/obejcts.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/* eslint quotes:0 */
'use strict'

import stream from 'stream'
Expand All @@ -17,7 +18,7 @@ test('Pretty print', t => {
}
}, 2, false)
const result = StreamProxy.read()
t.is(result, `Content: Object\n test ▸ 'Testing', another ▸ { level ▸ 'deep' } \n`)
t.is(result, "Content: Object\n test ▸ 'Testing', another ▸ { level ▸ 'deep' } \n")
})

test('Object dir print', t => {
Expand All @@ -31,5 +32,5 @@ test('Object dir print', t => {
colors: false
})
const result = StreamProxy.read()
t.is(result, `{ test: 'Testing', another: { level: 'deep' } }`)
t.is(result, "{ test: 'Testing', another: { level: 'deep' } }")
})

0 comments on commit 4db5237

Please sign in to comment.