Selaa lähdekoodia

add test for textures 404 (#14)

jomo 10 vuotta sitten
vanhempi
sitoutus
06172a8aaf
1 muutettua tiedostoa jossa 6 lisäystä ja 0 poistoa
  1. 6 0
      test/test.js

+ 6 - 0
test/test.js

@@ -171,5 +171,11 @@ describe('Crafatar', function() {
         done();
         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();
+      });
+    });
   });
   });
 });
 });