Created
March 24, 2016 20:04
-
-
Save tmcw/a8e3390d17052860157a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
styleClient.test('#createStyle', function(assert) { | |
var client = new MapboxClient(process.env.MapboxAccessToken); | |
assert.ok(client, 'created style client'); | |
newStyleFixture.glyphs = newStyleFixture.glyphs | |
.replace('{owner}', client.owner); | |
client.createStyle(newStyleFixture, function(err, style) { | |
assert.ifError(err, 'success'); | |
assert.ok(style.id, 'returned style has a valid id'); | |
newStyleId = style.id; | |
assert.end(); | |
}); | |
}); | |
styleClient.test('#retrieveStyle', function(assert) { | |
var client = new MapboxClient(process.env.MapboxAccessToken); | |
assert.ok(client, 'created style client'); | |
client.readStyle(newStyleId, function(err, style) { | |
assert.ifError(err, 'success'); | |
assert.ok(style.id, 'returned style has a valid id'); | |
assert.end(); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment