@@ -94,7 +94,7 @@ describe("Connection utils", function () {
9494 }
9595 } ) ;
9696 var actual = utils . socketConnector ( options ) ;
97- assert . include ( actual , "___browserSync___.io( 'localhost:3000/browser-sync', ___browserSync___.socketConfig) ;" ) ;
97+ assert . include ( actual , "___browserSync___.url = 'localhost:3000/browser-sync';" ) ;
9898 } ) ;
9999 it ( "should allow setting of the socket domain + namespace" , function ( ) {
100100 var options = merge ( {
@@ -107,7 +107,7 @@ describe("Connection utils", function () {
107107 }
108108 } ) ;
109109 var actual = utils . socketConnector ( options ) ;
110- assert . include ( actual , "___browserSync___.io( 'localhost:3000/shane', ___browserSync___.socketConfig) ;" ) ;
110+ assert . include ( actual , "___browserSync___.url = 'localhost:3000/shane';" ) ;
111111 } ) ;
112112 it ( "should allow setting of the socket domain (fn)+ namespace" , function ( ) {
113113 var options = merge ( {
@@ -125,7 +125,7 @@ describe("Connection utils", function () {
125125 }
126126 } ) ;
127127 var actual = utils . socketConnector ( options ) ;
128- assert . include ( actual , "___browserSync___.io( 'http://localhost:3002/shane', ___browserSync___.socketConfig) ;" ) ;
128+ assert . include ( actual , "___browserSync___.url = 'http://localhost:3002/shane';" ) ;
129129 } ) ;
130130 it ( "should allow setting of the socket namespace with fn (back compat)" , function ( ) {
131131 var options = merge ( {
@@ -142,6 +142,6 @@ describe("Connection utils", function () {
142142 }
143143 } ) ;
144144 var actual = utils . socketConnector ( options ) ;
145- assert . include ( actual , "___browserSync___.io( '' + location.host + '/browser-sync', ___browserSync___.socketConfig) ;" ) ;
145+ assert . include ( actual , "___browserSync___.url = '' + location.host + '/browser-sync';" ) ;
146146 } ) ;
147147} ) ;
0 commit comments