Skip to content
This repository has been archived by the owner on Apr 10, 2018. It is now read-only.

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jfirebaugh committed Aug 13, 2015
1 parent 8e2edc0 commit a7eebe2
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions test/migrations/v8.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,8 @@ t('renames urls', function (t) {
"type": "video", "url": ["foo"],
coordinates: [[1, 0], [1, 0], [1, 0], [1, 0]]
}
}
},
"layers": []
};

var output = {
Expand All @@ -113,7 +114,8 @@ t('renames urls', function (t) {
"type": "video", "urls": ["foo"],
coordinates: [[0, 1], [0, 1], [0, 1], [0, 1]]
}
}
},
"layers": []
};

t.deepEqual(migrate(input), output, 'renames url and flips coordinates of of video');
Expand Down Expand Up @@ -486,12 +488,14 @@ t('update fontstack function constant', function (t) {
t('migrate UNversioned fontstack urls', function (t) {
var input = {
"version": 7,
"glyphs": "mapbox://fontstack/{fontstack}/{range}.pbf"
"glyphs": "mapbox://fontstack/{fontstack}/{range}.pbf",
"layers": []
};

var output = {
"version": 8,
"glyphs": "mapbox://fonts/mapbox/{fontstack}/{range}.pbf"
"glyphs": "mapbox://fonts/mapbox/{fontstack}/{range}.pbf",
"layers": []
};

t.deepEqual(migrate(input), output);
Expand All @@ -501,12 +505,14 @@ t('migrate UNversioned fontstack urls', function (t) {
t('migrate versioned fontstack urls', function (t) {
var input = {
"version": 7,
"glyphs": "mapbox://fonts/v1/boxmap/{fontstack}/{range}.pbf"
"glyphs": "mapbox://fonts/v1/boxmap/{fontstack}/{range}.pbf",
"layers": []
};

var output = {
"version": 8,
"glyphs": "mapbox://fonts/boxmap/{fontstack}/{range}.pbf"
"glyphs": "mapbox://fonts/boxmap/{fontstack}/{range}.pbf",
"layers": []
};

t.deepEqual(migrate(input), output);
Expand Down

0 comments on commit a7eebe2

Please sign in to comment.