add test for invalid file updates (#14)

This commit is contained in:
jomo 2014-11-23 22:39:02 +01:00
parent 3b7acbd28d
commit 8ee862596b

View File

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