Jelajahi Sumber

add test for textures 404 (#14)

jomo 10 tahun lalu
induk
melakukan
06172a8aaf
1 mengubah file dengan 6 tambahan dan 0 penghapusan
  1. 6 0
      test/test.js

+ 6 - 0
test/test.js

@@ -171,5 +171,11 @@ describe('Crafatar', function() {
         done();
       });
     });
+    it("should not find the skin", function(done) {
+      networking.skin_file("http://textures.minecraft.net/texture/this-does-not-exist", "face.png", "helm.png", function(err) {
+        assert.strictEqual(err, null); // no error here, but it shouldn't throw exceptions
+        done();
+      });
+    });
   });
 });