Explorar o código

Add test for username defaulting to steve

Jake %!s(int64=10) %!d(string=hai) anos
pai
achega
02092aec08
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  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) {
       var alex_id = alex_ids[a];
       (function(alex_id) {