This commit is contained in:
jomo
2014-11-29 23:46:33 +01:00
parent 60387c8c7c
commit 1a7f456c83
2 changed files with 7 additions and 5 deletions

View File

@@ -90,7 +90,7 @@ describe('Crafatar', function() {
});
it("should be cached (uuid)", function(done) {
helpers.get_avatar(uuid, false, 160, function(err, status, image) {
assert.strictEqual(status, 1);
assert.strictEqual(status === 0 || status === 1, true);
done();
});
});
@@ -113,7 +113,7 @@ describe('Crafatar', function() {
});
it("should be cached (username)", function(done) {
helpers.get_avatar(username, false, 160, function(err, status, image) {
assert.strictEqual(status, 1);
assert.strictEqual(status === 0 || status === 1, true);
done();
});
});
@@ -129,7 +129,7 @@ describe('Crafatar', function() {
it("should not exist (but account does)", function(done) {
// profile 'Alex'
helpers.get_avatar("ec561538f3fd461daff5086b22154bce", false, 160, function(err, status, image) {
assert.strictEqual(status, 3);
assert.strictEqual(status, 2);
done();
});
});