|
@@ -144,7 +144,7 @@ describe('Crafatar', function() {
|
|
});
|
|
});
|
|
});
|
|
});
|
|
|
|
|
|
- describe('Mojang Errors', function() {
|
|
|
|
|
|
+ describe('Errors', function() {
|
|
before(function() {
|
|
before(function() {
|
|
cache.get_redis().flushall();
|
|
cache.get_redis().flushall();
|
|
});
|
|
});
|
|
@@ -187,5 +187,11 @@ describe('Crafatar', function() {
|
|
done();
|
|
done();
|
|
});
|
|
});
|
|
});
|
|
});
|
|
|
|
+ it("should handle file updates on invalid files", function(done) {
|
|
|
|
+ assert.doesNotThrow(function() {
|
|
|
|
+ cache.update_timestamp("0123456789abcdef0123456789abcdef", "invalid-file.png");
|
|
|
|
+ });
|
|
|
|
+ done();
|
|
|
|
+ });
|
|
});
|
|
});
|
|
});
|
|
});
|