Skip to content

Commit

Permalink
Fix test for L.Illustrate.Create.Pointer.
Browse files Browse the repository at this point in the history
  • Loading branch information
justinmanley committed Sep 15, 2014
1 parent e864346 commit fcd6080
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
11 changes: 7 additions & 4 deletions test/create/CreatePointerSpec.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,18 @@ describe("L.Illustrate.Pointer", function() {
});

describe("#_fireCreatedEvent", function() {
it.skip("Returns an instance of L.Illustrate.Pointer", function(done) {
it("Returns an instance of L.Illustrate.Pointer", function(done) {
create._currentLatLng = new L.LatLng(0, 0);
create.addVertex(new L.LatLng(40, -90));

create._fireCreatedEvent();
map.on('draw:created', function(event) {
var layer = event.layer;

map.on('draw:created', function(evt) {
expect(evt.layer).to.be.an.instanceOf(L.Illustrate.Pointer);
expect(layer).to.be.an.instanceof(L.Illustrate.Pointer);
done();
});

create._fireCreatedEvent();
});
});
});
2 changes: 1 addition & 1 deletion test/karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ module.exports = function(config) {
files: [
'../node_modules/leaflet/dist/leaflet-src.js',
'../node_modules/leaflet/dist/leaflet.css',
'../node_modules/leaflet-draw/dist/leaflet.draw.js',
'../node_modules/leaflet-draw/dist/leaflet.draw-src.js',
'../node_modules/leaflet-draw/dist/leaflet.draw.css',
'../node_modules/chai/chai.js',
'../node_modules/sinon/pkg/sinon-1.10.3.js',
Expand Down

0 comments on commit fcd6080

Please sign in to comment.