Skip to content

Commit

Permalink
Fix JS test
Browse files Browse the repository at this point in the history
  • Loading branch information
leplatrem committed Jul 30, 2014
1 parent fe33af0 commit d192d6c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion leaflet/tests/test.forms.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,11 @@ describe('Test Leaflet Forms', function() {
});

it("should emit event when field is loaded", function (done) {
var field = new L.GeometryField({geom_type: 'GEOMETRY', fieldid: 'formfield'});
var field = new L.GeometryField({
geom_type: 'GEOMETRY',
modifiable: true,
fieldid: 'formfield'
});
map.on('map:loadfield', function (e) {
assert.equal(e.target, map);
assert.equal(e.field, field);
Expand Down

0 comments on commit d192d6c

Please sign in to comment.