Browse Source

修复lib.test.js单元测试不通过问题

laiguoran 7 năm trước cách đây
mục cha
commit
219cef875e
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      test/app/service/lib.test.js

+ 1 - 1
test/app/service/lib.test.js

@@ -19,7 +19,7 @@ describe('test/app/service/lib.test.js', () => {
             create_time: '1524216653'
         };
         const libInfo = yield ctx.service.quotaLib.add(data);
-        assert(libInfo === true);
+        assert(libInfo.affectedRows === 1);
     });
 
 });