Skip to content

Commit

Permalink
test: check for port only
Browse files Browse the repository at this point in the history
  • Loading branch information
dryajov committed Sep 16, 2017
1 parent 0eb52d5 commit 87e4720
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions test/server-address.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,7 @@ var tape = require('tape')
tape('server .address should return bound address', function (t) {
var server = WS.createServer().listen(55214, function () {
t.equal(typeof server.address, 'function')
t.deepEqual(
server.address(),
{address: '::', family: 'IPv6', port: 55214},
'return address should match'
)

t.equal(server.address().port, 55214, 'return address should match')
server.close(function () {
t.end()
})
Expand Down

0 comments on commit 87e4720

Please sign in to comment.