소스 검색

add test for textures 404 (#14)

jomo 10 년 전
부모
커밋
06172a8aaf
1개의 변경된 파일6개의 추가작업 그리고 0개의 파일을 삭제
  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();
+      });
+    });
   });
 });