Skip to content

Commit

Permalink
update tc
Browse files Browse the repository at this point in the history
  • Loading branch information
yiminghe committed Nov 6, 2015
1 parent 116524f commit 41098dc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion package.json
Expand Up @@ -39,7 +39,8 @@
"expect.js": "~0.3.1",
"pre-commit": "1.x",
"rc-server": "3.x",
"rc-tools": "4.x"
"rc-tools": "4.x",
"simulate-dom-event": "~1.0.3"
},
"precommit": [
"lint"
Expand Down
5 changes: 3 additions & 2 deletions tests/index.spec.js
@@ -1,5 +1,6 @@
import addEventLister from '../src/';
import expect from 'expect.js';
import simulateEvent from 'simulate-dom-event';

describe('add-dom-event-listener', function () {
it('works', function () {
Expand All @@ -13,10 +14,10 @@ describe('add-dom-event-listener', function () {
});
a.href = '#';
document.body.appendChild(a);
a.click();
simulateEvent(a,'click');
expect(count).to.be(1);
handle.remove();
a.click();
simulateEvent(a,'click');
expect(count).to.be(1);
});
});

0 comments on commit 41098dc

Please sign in to comment.