|
@@ -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();
|
|
|
});
|
|
|
});
|