活动:整理代码
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user