소스 검색

Add test for username defaulting to steve

Jake 10 년 전
부모
커밋
02092aec08
1개의 변경된 파일4개의 추가작업 그리고 0개의 파일을 삭제
  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) {