angular - Test in Karma/Jasmine getModifierState -


how test method (angular):

 public detectcapslock(event: keyboardevent): void {         let capson: boolean = event.getmodifierstate && event.getmodifierstate("capslock");         if (capson) {             this.capson = "caps lock on";         } else {             this.capson = "";         }     } 


Comments

Popular posts from this blog

php - Embed BBCode within itself not working -

three.js - how to load gltf in three JS -

sql server - T-SQL: Access DB objects in same schema without qualifying? -