Adjusts tests for the new API
Unskip tests that should be passing now and adjust error messages to reflect recent changes.
This commit is contained in:
@@ -116,7 +116,7 @@ test('gzip', function(t) {
|
||||
map.release();
|
||||
|
||||
t.ok(err, 'returns error');
|
||||
t.equal(err.message, 'Error rendering image');
|
||||
t.ok(err.message.match(/Failed to parse/), 'error text matches');
|
||||
|
||||
t.end();
|
||||
});
|
||||
|
||||
@@ -338,11 +338,11 @@ test('Map', function(t) {
|
||||
});
|
||||
});
|
||||
|
||||
t.skip('requires a style to be set', function(t) {
|
||||
t.test('requires a style to be set', function(t) {
|
||||
setup(fileSource, function(map) {
|
||||
t.throws(function() {
|
||||
map.render({}, function() {});
|
||||
}, /Style is not set/);
|
||||
}, /Style is not loaded/);
|
||||
|
||||
map.release();
|
||||
|
||||
@@ -365,7 +365,7 @@ test('Map', function(t) {
|
||||
map.release();
|
||||
|
||||
t.ok(err, 'returns error');
|
||||
t.equal(err.message, 'Error rendering image');
|
||||
t.ok(err.message.match(/Failed to load/), 'error text matches');
|
||||
|
||||
t.end();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user