ソースを参照

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

Maksymilian Barnaś 9 年 前
コミット
ac9e7476a3
1 ファイル変更1 行追加2 行削除
  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( '' );
 			} );
 		} );
 	} );