Skip to content

Commit

Permalink
adding test for #161
Browse files Browse the repository at this point in the history
  • Loading branch information
phillipskevin committed Feb 6, 2018
1 parent 5028693 commit 951680a
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions test/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -883,6 +883,19 @@ if(isBrowser) {
})
.then(done, done);
});

it("removeEventListener doesn't throw when removing a listener that doesn't exist", function(done){
var el = document.createElement("div");

new Zone().run(function(){
var handler = undefined;
el.removeEventListener("some-test", handler);
})
.then(function(data){
assert.ok(true, "it finished");
})
.then(done, done);
});
});

describe("onclick event handler", function() {
Expand Down

0 comments on commit 951680a

Please sign in to comment.