Browse Source

Add test for username defaulting to steve

Jake 10 years ago
parent
commit
02092aec08
1 changed files with 4 additions and 0 deletions
  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) {