mirror of
https://github.com/azures04/crafatar.git
synced 2026-03-22 07:51:17 +01:00
add test for invalid file updates (#14)
This commit is contained in:
parent
3b7acbd28d
commit
8ee862596b
@ -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();
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user