Update the tests
Reflect the changes on the previous MBGL version bump and unskip tests that should pass now.
This commit is contained in:
@@ -104,7 +104,7 @@ test('gzip', function(t) {
|
||||
mbgl.once('message', function(msg) {
|
||||
if (msg.severity == 'ERROR') {
|
||||
t.ok(msg, 'emits error');
|
||||
t.equal(msg.class, 'ResourceLoader');
|
||||
t.equal(msg.class, 'Style');
|
||||
t.equal(msg.severity, 'ERROR');
|
||||
t.ok(msg.text.match(/pbf unknown field type exception/), 'error text matches');
|
||||
}
|
||||
|
||||
@@ -220,10 +220,10 @@ test('Map', function(t) {
|
||||
});
|
||||
});
|
||||
|
||||
t.skip('returns an error', function(t) {
|
||||
t.test('returns an error', function(t) {
|
||||
mbgl.on('message', function(msg) {
|
||||
t.ok(msg, 'emits error');
|
||||
t.equal(msg.class, 'ResourceLoader');
|
||||
t.equal(msg.class, 'Style');
|
||||
t.equal(msg.severity, 'ERROR');
|
||||
t.ok(msg.text.match(/Failed to load/), 'error text matches');
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user