<commit_before>var test = require('tape')
var goodbye = require('pull-goodbye')
var network = require('../../browser.js')
var _ = icebreaker

test('ws:connect',function(t){
t.plan(2)
$.get('/port',function(port){
  network.connect('ws://localhost:'+port,function(connection){
    _(
      connection,
      goodbye({source:_('hello'),sink:_.drain(function(d){
        t.equals(d,'world')
      },function(err){
        t.notOk(err)
      })},'GoodBye'),
      connection
    )
    })
  })
})

<commit_msg>Update browser test<commit_after>var test = require('tape')
var goodbye = require('pull-goodbye')
var network = require('../../browser.js')
var _ = icebreaker

test('ws:connect',function(t){
t.plan(2)
$.get('/port',function(port){
  console.log(port)
  network.connect('ws://localhost:'+port,function(connection){
    console.log('connection')
    _(
      connection,
      goodbye({source:_('hello'),sink:_.drain(function(d){
        console.log('data');
        t.equals(d,'world')
      },function(err){
        console.log(err);
        t.notOk(err)
      })},'GoodBye'),
      connection
    )
    })
  })
})


{'fraction_non_alphanumeric': 0.20517395182872436, 'fraction_numerical': 0.001784121320249777, 'mean_word_length': 3.332046332046332, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6309365', 'n_tokens_mistral': 377, 'n_tokens_neox': 369, 'n_words': 50}