Skip to content

Commit

Permalink
test: fix util.inspect() test
Browse files Browse the repository at this point in the history
Actually *use* util.inspect(), so that it properly fails
on Node v7
  • Loading branch information
TooTallNate committed Apr 18, 2017
1 parent bb9d570 commit 615016a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/address.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

var assert = require('assert')
var ref = require('../')
var assert = require('assert')
var inspect = require('util').inspect

describe('address', function () {

Expand Down Expand Up @@ -44,7 +44,7 @@ describe('address', function () {
describe('inspect()', function () {

it('should overwrite the default Buffer#inspect() to print the memory address', function () {
assert(buf.inspect().indexOf(buf.hexAddress()) !== -1)
assert(inspect(buf).indexOf(buf.hexAddress()) !== -1)
})

})
Expand Down

0 comments on commit 615016a

Please sign in to comment.