File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ class Options {
22 constructor ( ) {
33 this . https = false ;
44 this . host = null ;
5- let port = 35729 ; // backing variable for port property closure
5+ let port = 35729 ; // backing variable for port property closure
66
77 // we allow port to be overridden with a falsy value to indicate
88 // that we should not add a port specification to the backend url;
Original file line number Diff line number Diff line change @@ -139,26 +139,26 @@ describe('Options', function () {
139139 } ) ;
140140
141141 it ( 'should allow the port parameter to be set to blank' , function ( ) {
142- let dom = new JSDOM ( '<script src="https://somewhere.com/livereload.js?port="></script>' ) ;
143- let options = Options . extract ( dom . window . document ) ;
142+ const dom = new JSDOM ( '<script src="https://somewhere.com/livereload.js?port="></script>' ) ;
143+ const options = Options . extract ( dom . window . document ) ;
144144
145145 assert . ok ( options ) ;
146146 return assert . strictEqual ( '' , options . port ) ;
147147 } ) ;
148148
149149 it ( 'should inherit the port parameter from the script URL if blank' , function ( ) {
150- let dom = new JSDOM ( '<script src="https://somewhere.com:8080/livereload.js?port="></script>' ) ;
150+ const dom = new JSDOM ( '<script src="https://somewhere.com:8080/livereload.js?port="></script>' ) ;
151151
152- let options = Options . extract ( dom . window . document ) ;
152+ const options = Options . extract ( dom . window . document ) ;
153153 assert . ok ( options ) ;
154154
155155 return assert . strictEqual ( 8080 , options . port ) ;
156156 } ) ;
157157
158158 it ( 'should propagate arbitrary port number when non-empty' , function ( ) {
159- let dom = new JSDOM ( '<script src="http://somewhere.com/livereload.js?port=abc"></script>' ) ;
159+ const dom = new JSDOM ( '<script src="http://somewhere.com/livereload.js?port=abc"></script>' ) ;
160160
161- let options = Options . extract ( dom . window . document ) ;
161+ const options = Options . extract ( dom . window . document ) ;
162162 assert . ok ( options ) ;
163163
164164 return assert . strictEqual ( 'abc' , options . port ) ;
You can’t perform that action at this time.
0 commit comments