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:
Thiago Marcos P. Santos
2015-06-16 15:59:55 +03:00
parent 1ae7dd585d
commit e6c442bf4e
2 changed files with 4 additions and 4 deletions

View File

@@ -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();
});

View File

@@ -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();
});