From 0d2543675fe1b1ce94147629fff2e90137f1d49f Mon Sep 17 00:00:00 2001 From: "Thiago Marcos P. Santos" Date: Wed, 3 Jun 2015 16:33:50 +0300 Subject: [PATCH] Update the tests Reflect the changes on the previous MBGL version bump and unskip tests that should pass now. --- test/js/gzip.test.js | 2 +- test/js/map.test.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/test/js/gzip.test.js b/test/js/gzip.test.js index ed1bb3c92..2ed0080ac 100644 --- a/test/js/gzip.test.js +++ b/test/js/gzip.test.js @@ -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'); } diff --git a/test/js/map.test.js b/test/js/map.test.js index a29f661d8..ce6017beb 100644 --- a/test/js/map.test.js +++ b/test/js/map.test.js @@ -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'); });