活动:整理代码

This commit is contained in:
qiaoxin
2021-07-17 14:49:33 +08:00
parent f363c4f7ba
commit 03e8d88dd1
34 changed files with 50 additions and 61 deletions
+3
View File
@@ -1,6 +1,9 @@
import { expect } from 'chai';
export function checkSuccessResponse(response, withData = true) {
if (response.code != 0) {
console.log('checkSuccessResponse info:', JSON.stringify(response))
}
expect(response).to.be.an('object');
expect(response.code).equal(0);
if (withData) {