Ver Fonte

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

Maksymilian Barnaś há 9 anos atrás
pai
commit
ac9e7476a3
1 ficheiros alterados com 1 adições e 2 exclusões
  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( '' );
 			} );
 		} );
 	} );