浏览代码

Use get_render in tests

Jake 10 年之前
父节点
当前提交
5e453ced02
共有 1 个文件被更改,包括 4 次插入4 次删除
  1. 4 4
      test/test.js

+ 4 - 4
test/test.js

@@ -165,13 +165,13 @@ describe("Crafatar", function() {
   describe("Networking: Renders", function() {
     describe("Head", function() {
       it("should not fail (username)", function(done) {
-        renders.draw_model(username, 6, true, false, function(err, status, hash, img) {
+        helpers.get_render(username, 6, true, false, function(err, status, hash, img) {
           assert.strictEqual(err, null);
           done();
         });
       });
       it("should not fail (uuid)", function(done) {
-        renders.draw_model(username, 6, true, false, function(err, status, hash, img) {
+        helpers.get_render(username, 6, true, false, function(err, status, hash, img) {
           assert.strictEqual(err, null);
           done();
         });
@@ -179,13 +179,13 @@ describe("Crafatar", function() {
     });
     describe("Body", function() {
       it("should not fail (username)", function(done) {
-        renders.draw_model(username, 6, true, true, function(err, status, hash, img) {
+        helpers.get_render(username, 6, true, true, function(err, status, hash, img) {
           assert.strictEqual(err, null);
           done();
         });
       });
       it("should not fail (uuid)", function(done) {
-        renders.draw_model(username, 6, true, true, function(err, status, hash, img) {
+        helpers.get_render(username, 6, true, true, function(err, status, hash, img) {
           assert.strictEqual(err, null);
           done();
         });