8
0
Эх сурвалжийг харах

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

Maksymilian Barnaś 9 жил өмнө
parent
commit
ac9e7476a3

+ 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( '' );
 			} );
 		} );
 	} );