Przeglądaj źródła

Add test for username defaulting to steve

Jake 10 lat temu
rodzic
commit
02092aec08
1 zmienionych plików z 4 dodań i 0 usunięć
  1. 4 0
      test/test.js

+ 4 - 0
test/test.js

@@ -140,6 +140,10 @@ describe("Crafatar", function() {
         });
         });
       });
       });
     });
     });
+    it("Username should default to Steve", function(done) {
+      assert.strictEqual(skins.default_skin("TestUser"), "steve");
+      done();
+    });
     for (var a in alex_ids) {
     for (var a in alex_ids) {
       var alex_id = alex_ids[a];
       var alex_id = alex_ids[a];
       (function(alex_id) {
       (function(alex_id) {