add tiny tests for skins

This commit is contained in:
jomo 2014-11-30 03:48:32 +01:00
parent 7d47028ff7
commit 39e6e626b9

View File

@ -143,6 +143,21 @@ describe("Crafatar", function() {
}); });
}); });
describe("Networking: Skin", function() {
it("should not fail (uuid)", function(done) {
helpers.get_skin(uuid, function(err, hash, img) {
assert.strictEqual(err, null);
done();
});
});
it("should not fail (username)", function(done) {
helpers.get_skin(username, function(err, hash, img) {
assert.strictEqual(err, null);
done();
});
});
});
describe("Errors", function() { describe("Errors", function() {
before(function() { before(function() {
cache.get_redis().flushall(); cache.get_redis().flushall();