Browse Source

add test for invalid file updates (#14)

jomo 10 năm trước cách đây
mục cha
commit
8ee862596b
1 tập tin đã thay đổi với 7 bổ sung1 xóa
  1. 7 1
      test/test.js

+ 7 - 1
test/test.js

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