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

angular - Ionic slides - dynamically add slides before and after -

minify - Minimizing css files -

Add a dynamic header in angular 2 http provider -