Sfoglia il codice sorgente

add tiny tests for skins

jomo 10 anni fa
parent
commit
39e6e626b9
1 ha cambiato i file con 15 aggiunte e 0 eliminazioni
  1. 15 0
      test/test.js

+ 15 - 0
test/test.js

@@ -143,6 +143,21 @@ describe("Crafatar", function() {
     });
   });
 
+  describe("Networking: Skin", function() {
+    it("should not fail (uuid)", function(done) {
+      helpers.get_skin(uuid, function(err, hash, img) {
+        assert.strictEqual(err, null);
+        done();
+      });
+    });
+    it("should not fail (username)", function(done) {
+      helpers.get_skin(username, function(err, hash, img) {
+        assert.strictEqual(err, null);
+        done();
+      });
+    });
+  });
+
   describe("Errors", function() {
     before(function() {
       cache.get_redis().flushall();