Skip to content

Commit

Permalink
fix unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
anjmao committed Apr 5, 2018
1 parent 8f6c5b2 commit 28f6fa1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ng-select/ng-select.component.spec.ts
Expand Up @@ -1753,12 +1753,12 @@ describe('NgSelectComponent', function () {

const selectInput = fixture.debugElement.query(By.css('.ng-control'));
// open
selectInput.triggerEventHandler('click', { stopPropagation: () => { } });
selectInput.triggerEventHandler('mousedown', { stopPropagation: () => { } });
tickAndDetectChanges(fixture);
expect(fixture.componentInstance.select.isOpen).toBe(true);

// close
selectInput.triggerEventHandler('click', { stopPropagation: () => { } });
selectInput.triggerEventHandler('mousedown', { stopPropagation: () => { } });
tickAndDetectChanges(fixture);
expect(fixture.componentInstance.select.isOpen).toBe(false);
}));
Expand Down

0 comments on commit 28f6fa1

Please sign in to comment.