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

minify - Minimizing css files -

neo4j - finding mutual friends in a cypher statement starting with three or more persons -

php - How to remove letter in front of the word laravel -