Skip to content

Commit

Permalink
cleanup listeners after tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mejackreed committed Oct 12, 2016
1 parent 0de332a commit 1814840
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions spec/LTileLayerIiifSpec.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,10 @@ describe('L.TileLayer.Iiif', function() {
iiifLayer = iiifLayerFactory();
});

afterEach(function() {
iiifLayer.off('load');
});

it('by default is on', function(done) {
map.addLayer(iiifLayer);
iiifLayer.on('load', function() {
Expand All @@ -91,6 +95,10 @@ describe('L.TileLayer.Iiif', function() {

describe('quality', function() {
var iiifLayer;

afterEach(function() {
iiifLayer.off('load');
});

it('by default is on', function(done) {
iiifLayer = L.tileLayer.iiif('http://localhost:9876/base/fixtures/acrobat_info.json');
Expand Down

0 comments on commit 1814840

Please sign in to comment.