Skip to content

Commit

Permalink
fix: use CustomEvent instead of click event
Browse files Browse the repository at this point in the history
The click event is not supported by many browsers
  • Loading branch information
SteveVanOpstal committed Aug 3, 2016
1 parent 18c9d2c commit ba2ef05
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/client/build/masteries/mastery.component.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ describe('MasteryComponent', () => {
it('should add rank on click', () => {
spyOn(component, 'rankAdd');
expect(component.rankAdd).not.toHaveBeenCalled();
document.getElementsByTagName('div').item(1).click();
document.getElementsByTagName('div').item(1).dispatchEvent(new CustomEvent('click'));
expect(component.rankAdd).toHaveBeenCalled();
});
it('should add rank on drag', () => {
Expand Down

0 comments on commit ba2ef05

Please sign in to comment.