Skip to content

Commit

Permalink
Add tests for new service.referer
Browse files Browse the repository at this point in the history
  • Loading branch information
watson committed May 7, 2016
1 parent d5949f7 commit 8602406
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/bonjour.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,10 @@ test('bonjour.find', function (bonjour, t) {
t.equal(s.port, 3000)
t.equal(s.type, 'test')
t.equal(s.protocol, 'tcp')
t.equal(s.referer.address, '127.0.0.1')
t.equal(s.referer.family, 'IPv4')
t.ok(Number.isFinite(s.referer.port))
t.ok(Number.isFinite(s.referer.size))
t.deepEqual(s.subtypes, [])
t.deepEqual(s.addresses.sort(), getAddresses().sort())

Expand Down

0 comments on commit 8602406

Please sign in to comment.