mirror of
https://github.com/azures04/crafatar.git
synced 2026-03-22 07:51:17 +01:00
add tiny tests for skins
This commit is contained in:
parent
7d47028ff7
commit
39e6e626b9
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();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user