@@ -17,14 +17,14 @@ describe('command line usage', function() {
1717it ( '--version' , function ( done ) {
1818exec_test ( [ "--version" ] , function ( error , stdout , stdin ) {
1919assert ( ! error , error ) ;
20- assert ( stdout . indexOf ( "live-server" ) == 0 , "version not found" ) ;
20+ assert ( stdout . indexOf ( "live-server" ) === 0 , "version not found" ) ;
2121done ( ) ;
2222} ) ;
2323} ) ;
2424it ( '--help' , function ( done ) {
2525exec_test ( [ "--help" ] , function ( error , stdout , stdin ) {
2626assert ( ! error , error ) ;
27- assert ( stdout . indexOf ( "Usage: live-server" ) == 0 , "usage not found" ) ;
27+ assert ( stdout . indexOf ( "Usage: live-server" ) === 0 , "usage not found" ) ;
2828done ( ) ;
2929} ) ;
3030} ) ;
@@ -38,15 +38,15 @@ describe('command line usage', function() {
3838it ( '--port' , function ( done ) {
3939exec_test ( [ "--port=16123" , "--no-browser" , "--test" ] , function ( error , stdout , stdin ) {
4040assert ( ! error , error ) ;
41- assert ( stdout . indexOf ( "Serving" ) = = 0 , "serving string not found" ) ;
41+ assert ( stdout . indexOf ( "Serving" ) > = 0 , "serving string not found" ) ;
4242assert ( stdout . indexOf ( "at http://127.0.0.1:16123" ) != - 1 , "port string not found" ) ;
4343done ( ) ;
4444} ) ;
4545} ) ;
4646it ( '--host' , function ( done ) {
4747exec_test ( [ "--host=localhost" , "--no-browser" , "--test" ] , function ( error , stdout , stdin ) {
4848assert ( ! error , error ) ;
49- assert ( stdout . indexOf ( "Serving" ) = = 0 , "serving string not found" ) ;
49+ assert ( stdout . indexOf ( "Serving" ) > = 0 , "serving string not found" ) ;
5050assert ( stdout . indexOf ( "at http://localhost:" ) != - 1 , "host string not found" ) ;
5151done ( ) ;
5252} ) ;
@@ -58,7 +58,7 @@ describe('command line usage', function() {
5858"--test"
5959] , function ( error , stdout , stdin ) {
6060assert ( ! error , error ) ;
61- assert ( stdout . indexOf ( "Serving" ) = = 0 , "serving string not found" ) ;
61+ assert ( stdout . indexOf ( "Serving" ) > = 0 , "serving string not found" ) ;
6262done ( ) ;
6363} ) ;
6464} ) ;
0 commit comments