Skip to content

Commit

Permalink
Expand test coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
teodragovic committed Feb 28, 2020
1 parent 72a283b commit 4be97ce
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions compat/test/browser/events.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,10 @@ describe('preact/compat events', () => {
expect(event).to.haveOwnProperty('nativeEvent');
expect(event).to.haveOwnProperty('isDefaultPrevented');
expect(typeof event.persist).to.equal('function');
expect(typeof event.isDefaultPrevented).to.equal('function');

expect(() => event.persist()).to.not.throw();
expect(() => event.isDefaultPrevented()).to.not.throw();
});

it('should normalize ondoubleclick event', () => {
Expand Down

0 comments on commit 4be97ce

Please sign in to comment.