Explorar el Código

Updated test to reflect changes with appendPeriodIfMissing() argument defaulting.

Maksymilian Barnaś hace 9 años
padre
commit
ac9e7476a3
Se han modificado 1 ficheros con 1 adiciones y 2 borrados
  1. 1 2
      dev/tests/dev/sanitize.js

+ 1 - 2
dev/tests/dev/sanitize.js

@@ -41,9 +41,8 @@ describe( 'utils', () => {
 				expect( sanitized ).to.equal( '' );
 			} );
 
-			it( 'should cast false/empty string to empty string', () => {
+			it( 'should return empty string when invoked with empty string', () => {
 				expect( sanitize.appendPeriodIfMissing( '' ) ).to.equal( '' );
-				expect( sanitize.appendPeriodIfMissing( false ) ).to.equal( '' );
 			} );
 		} );
 	} );