Skip to content

Commit

Permalink
Linter
Browse files Browse the repository at this point in the history
  • Loading branch information
olamothe committed Mar 24, 2017
1 parent 3d8ab11 commit bc72b84
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions src/ui/AdvancedSearch/Form/Dropdown.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,9 @@ export class Dropdown {
}

private buildContent() {
this.selectElement = <HTMLSelectElement>$$('select', {className: 'coveo-dropdown'}).el;
this.selectElement = <HTMLSelectElement>$$('select', { className: 'coveo-dropdown' }).el;
let selectOptions = this.buildOptions();
_.each(selectOptions, (opt)=> {
_.each(selectOptions, (opt) => {
$$(this.selectElement).append(opt);
});
this.element = this.selectElement;
Expand Down Expand Up @@ -113,6 +113,6 @@ export class Dropdown {
}

private bindEvents() {
$$(this.selectElement).on('change', ()=> this.onChange());
$$(this.selectElement).on('change', () => this.onChange());
}
}
4 changes: 2 additions & 2 deletions test/ui/AdvancedSearch/Form/DropdownTest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,12 @@ export function DropdownTest() {
expect(dropdown.getValue()).toEqual(values[0]);
});

it('should call the on change function when the option is changed', ()=> {
it('should call the on change function when the option is changed', () => {
dropdown.select(1);
expect(changeSpy).toHaveBeenCalled();
});

it('should not call the on change function if not wanted', ()=> {
it('should not call the on change function if not wanted', () => {
dropdown.select(1, false);
expect(changeSpy).not.toHaveBeenCalled();
});
Expand Down

0 comments on commit bc72b84

Please sign in to comment.