Skip to content

Commit

Permalink
Revert "unneeded right now"
Browse files Browse the repository at this point in the history
This reverts commit f514fae.
  • Loading branch information
Dane Springmeyer committed Nov 9, 2015
1 parent c8320ed commit ecbcb0c
Showing 1 changed file with 23 additions and 23 deletions.
46 changes: 23 additions & 23 deletions test/geojson.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -143,26 +143,26 @@ tape('[GeoJson] Get zooms', function(assert) {
});
});

// tape('[GeoJson] should return an error due to invalid geojson', function(assert) {
// var file = path.resolve('test/fixtures/invalid-geojson/parseinvalid.geojson');
// var source = new GeoJSON(file);
// source.getDetails(function(err, result) {
// assert.ok(err instanceof Error);
// assert.notOk(result, 'no result returned');
// assert.equal('EINVALID', err.code);
// assert.equal(err.message, 'Invalid geojson');
// assert.end();
// });
// });

// tape('[GeoJson] should return an error due to invalid geojson', function(assert) {
// var file = path.resolve('test/fixtures/invalid-geojson/parseinvalid-min.geojson');
// var source = new GeoJSON(file);
// source.getDetails(function(err, result) {
// assert.ok(err instanceof Error);
// assert.notOk(result, 'no result returned');
// assert.equal('EINVALID', err.code);
// assert.equal(err.message, 'Invalid geojson');
// assert.end();
// });
// });
tape('[GeoJson] should return an error due to invalid geojson', function(assert) {
var file = path.resolve('test/fixtures/invalid-geojson/parseinvalid.geojson');
var source = new GeoJSON(file);
source.getDetails(function(err, result) {
assert.ok(err instanceof Error);
assert.notOk(result, 'no result returned');
assert.equal('EINVALID', err.code);
assert.equal(err.message, 'Invalid geojson');
assert.end();
});
});

tape('[GeoJson] should return an error due to invalid geojson', function(assert) {
var file = path.resolve('test/fixtures/invalid-geojson/parseinvalid-min.geojson');
var source = new GeoJSON(file);
source.getDetails(function(err, result) {
assert.ok(err instanceof Error);
assert.notOk(result, 'no result returned');
assert.equal('EINVALID', err.code);
assert.equal(err.message, 'Invalid geojson');
assert.end();
});
});

0 comments on commit ecbcb0c

Please sign in to comment.