diff options
author | Bruno de Oliveira Abinader <bruno@mapbox.com> | 2017-03-15 16:07:58 +0200 |
---|---|---|
committer | Bruno de Oliveira Abinader <bruno@mapbox.com> | 2017-03-17 11:25:48 +0200 |
commit | 5e3308c5c01156a08c535dd0f63ee69cf2d20733 (patch) | |
tree | 4f5a7bd9e854452570dcb1e0276c3da9be52038a /platform/node/test/js | |
parent | bfc7c2967cb1cb5db04d7cbaf0af593b1e223f7f (diff) | |
download | qtlocation-mapboxgl-5e3308c5c01156a08c535dd0f63ee69cf2d20733.tar.gz |
[node] Update changes in MapObserver::onDidFailLoadingMap
Diffstat (limited to 'platform/node/test/js')
-rw-r--r-- | platform/node/test/js/map.test.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/platform/node/test/js/map.test.js b/platform/node/test/js/map.test.js index 145f62ef5f..e5c756adb6 100644 --- a/platform/node/test/js/map.test.js +++ b/platform/node/test/js/map.test.js @@ -311,11 +311,11 @@ test('Map', function(t) { t.throws(function() { map.load('foo bar'); - }, /Requires a map style to be a valid style JSON/); + }, /Failed to parse style: 1 - Invalid value./); t.throws(function() { map.load('""'); - }, /Requires a map style to be a valid style JSON/); + }, /Failed to parse style: style must be an object/); map.release(); t.end(); @@ -335,7 +335,7 @@ test('Map', function(t) { t.throws(function() { map.load('invalid'); - }, /Requires a map style to be a valid style JSON/); + }, /Failed to parse style: 0 - Invalid value./); }); t.test('accepts an empty stylesheet string', function(t) { |