Permalink
Browse files

loosen testing of datasource exception strings to ensure test passed …

…with different mapnik versions
  • Loading branch information...
1 parent fa1aee2 commit f48035cd475c683d2e15896ff349ef41f3471644 Dane Springmeyer committed Nov 1, 2012
Showing with 2 additions and 4 deletions.
  1. +2 −4 test/datasource.test.js
View
@@ -13,11 +13,9 @@ describe('mapnik.Datasource', function() {
assert.throws(function() { new mapnik.Datasource('foo'); },
/Must provide an object, eg \{type: 'shape', file : 'world.shp'\}/);
- assert.throws(function() { new mapnik.Datasource({ 'foo': 1 }); },
- /Could not create datasource. Required parameter 'type' is missing/);
+ assert.throws(function() { new mapnik.Datasource({ 'foo': 1 }); });
- assert.throws(function() { new mapnik.Datasource({ 'type': 'foo' }); },
- /Could not create datasource. No plugin found for type 'foo'/);
+ assert.throws(function() { new mapnik.Datasource({ 'type': 'foo' }); });
assert.throws(function() { new mapnik.Datasource({ 'type': 'shape' }); },
/Shape Plugin: missing <file> parameter/);

0 comments on commit f48035c

Please sign in to comment.