Triple equals for keybinding find.

This commit is contained in:
Michel Kaporin 2017-05-31 09:38:24 +02:00
parent c1d3334fc2
commit e70d11da0b

View file

@ -134,7 +134,7 @@ export class SpectronApplication {
* @param command command (e.g. 'workbench.action.files.newUntitledFile')
*/
public command(command: string, capture?: boolean): Promise<any> {
const binding = this.keybindings.find(x => x['command'] == command);
const binding = this.keybindings.find(x => x['command'] === command);
const keys: string = binding.key;
let keysToPress: string[] = [];