@@ -92,7 +92,7 @@ describe("Connection snippetUtils", function () {
9292 }
9393 } ) ;
9494 var actual = utils . socketConnector ( options ) ;
95- assert . include ( actual , "___browserSync___.io( 'localhost:3000/browser-sync', ___browserSync___.socketConfig) ;" ) ;
95+ assert . include ( actual , "___browserSync___.url = 'localhost:3000/browser-sync';" ) ;
9696 } ) ;
9797 it ( "should allow setting of the socket domain + namespace" , function ( ) {
9898 var options = merge ( {
@@ -105,7 +105,7 @@ describe("Connection snippetUtils", function () {
105105 }
106106 } ) ;
107107 var actual = utils . socketConnector ( options ) ;
108- assert . include ( actual , "___browserSync___.io( 'localhost:3000/shane', ___browserSync___.socketConfig) ;" ) ;
108+ assert . include ( actual , "___browserSync___.url = 'localhost:3000/shane';" ) ;
109109 } ) ;
110110 it ( "should allow setting of the socket domain (fn)+ namespace" , function ( ) {
111111 var options = merge ( {
@@ -123,7 +123,7 @@ describe("Connection snippetUtils", function () {
123123 }
124124 } ) ;
125125 var actual = utils . socketConnector ( options ) ;
126- assert . include ( actual , "___browserSync___.io( 'http://localhost:3002/shane', ___browserSync___.socketConfig) ;" ) ;
126+ assert . include ( actual , "___browserSync___.url = 'http://localhost:3002/shane';" ) ;
127127 } ) ;
128128 it ( "should allow setting of the socket namespace with fn (back compat)" , function ( ) {
129129 var options = merge ( {
@@ -140,7 +140,7 @@ describe("Connection snippetUtils", function () {
140140 }
141141 } ) ;
142142 var actual = utils . socketConnector ( options ) ;
143- assert . include ( actual , "___browserSync___.io( '' + location.host + '/browser-sync', ___browserSync___.socketConfig) ;" ) ;
143+ assert . include ( actual , "___browserSync___.url = '' + location.host + '/browser-sync';" ) ;
144144 } ) ;
145145 it ( "E2E Should allow setting of socket.domain + script.domain as strings" , function ( done ) {
146146 bs . reset ( ) ;
0 commit comments