mirror of
https://github.com/azures04/crafatar.git
synced 2026-05-06 11:00:39 +02:00
add tiny tests for skins
This commit is contained in:
15
test/test.js
15
test/test.js
@@ -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();
|
||||||
|
|||||||
Reference in New Issue
Block a user