ソースを参照

Update packages/ckeditor5-typing/tests/utils/injectunsafekeystrokeshandling.js

Co-authored-by: Kuba Niegowski <1232187+niegowski@users.noreply.github.com>
Aleksander Nowodzinski 5 年 前
コミット
f80bef2715

+ 1 - 1
packages/ckeditor5-typing/tests/utils/injectunsafekeystrokeshandling.js

@@ -78,7 +78,7 @@ describe( 'unsafe keystroke handling utils', () => {
 
 		it( 'should return "false" for the keystrokes that result in typing', () => {
 			expect( isSafeKeystroke( { keyCode: keyCodes.a } ), 'a' ).to.be.false;
-			expect( isSafeKeystroke( { keyCode: keyCodes[ 48 ] } ), '0' ).to.be.false;
+			expect( isSafeKeystroke( { keyCode: keyCodes[ 0 ] } ), '0' ).to.be.false;
 			expect( isSafeKeystroke( { keyCode: keyCodes.a, altKey: true } ), 'Alt+a' ).to.be.false;
 		} );
 	} );