test: 💍 更新一些测试用例的快照(因为prettier规则似乎发生了变化导致格式化后的结果出了些许偏差)

This commit is contained in:
Clarence-pan 2022-10-25 11:49:43 +08:00 committed by 牧毅
parent 84bdb3f6fb
commit a86897cec0
6 changed files with 8 additions and 13 deletions

View File

@ -253,7 +253,6 @@ class Home$$Page extends Component {
if (!response.success) { if (!response.success) {
throw new Error(response.message); throw new Error(response.message);
} }
return response.data; return response.data;
}, },
isInit: true, isInit: true,
@ -280,7 +279,6 @@ class Home$$Page extends Component {
if (!response.success) { if (!response.success) {
throw new Error(response.message); throw new Error(response.message);
} }
return response.data.result; return response.data.result;
}, },
isInit: true, isInit: true,

View File

@ -84,7 +84,6 @@ class Test$$Page extends React.Component {
if (!response.data.success) { if (!response.data.success) {
throw new Error(response.data.message); throw new Error(response.data.message);
} }
return response.data.data; return response.data.data;
}, },
isInit: function () { isInit: function () {
@ -105,7 +104,6 @@ class Test$$Page extends React.Component {
if (!response.data.success) { if (!response.data.success) {
throw new Error(response.data.message); throw new Error(response.data.message);
} }
return response.data.data.result; return response.data.data.result;
}, },
isInit: function () { isInit: function () {

View File

@ -84,7 +84,6 @@ class Test$$Page extends React.Component {
if (!response.data.success) { if (!response.data.success) {
throw new Error(response.data.message); throw new Error(response.data.message);
} }
return response.data.data; return response.data.data;
}, },
isInit: function () { isInit: function () {
@ -105,7 +104,6 @@ class Test$$Page extends React.Component {
if (!response.data.success) { if (!response.data.success) {
throw new Error(response.data.message); throw new Error(response.data.message);
} }
return response.data.data.result; return response.data.data.result;
}, },
isInit: function () { isInit: function () {

View File

@ -145,6 +145,7 @@ class Test$$Page extends React.Component {
onOkModifyDialogThird() { onOkModifyDialogThird() {
// //
this.setState({ this.setState({
currentStep: 0, currentStep: 0,
isModifyDialogVisible: false, isModifyDialogVisible: false,
@ -153,6 +154,7 @@ class Test$$Page extends React.Component {
onCancelModifyDialogThird() { onCancelModifyDialogThird() {
// //
this.setState({ this.setState({
isModifyDialogVisible: false, isModifyDialogVisible: false,
}); });
@ -184,7 +186,10 @@ class Test$$Page extends React.Component {
onValuesChange(_, values) { onValuesChange(_, values) {
this.setState({ this.setState({
customerProjectInfo: { ...this.state.customerProjectInfo, ...values }, customerProjectInfo: {
...this.state.customerProjectInfo,
...values,
},
}); });
} }

View File

@ -59,7 +59,6 @@ class Test$$Page extends React.Component {
}; };
this.__jp__init(); this.__jp__init();
this.statusDesc = { this.statusDesc = {
0: "失败", 0: "失败",
1: "成功", 1: "成功",
@ -157,7 +156,6 @@ class Test$$Page extends React.Component {
if (!item) { if (!item) {
return "暂无结果"; return "暂无结果";
} }
const { channel, plat, version, status } = item; const { channel, plat, version, status } = item;
return [channel, plat, version, status].join("-"); return [channel, plat, version, status].join("-");
} }
@ -175,7 +173,8 @@ class Test$$Page extends React.Component {
params: { params: {
size: 5000, size: 5000,
}, },
}); // if (this.state.init === false) { });
// if (this.state.init === false) {
// this.setState({ // this.setState({
// init: true, // init: true,
// }); // });

View File

@ -61,7 +61,6 @@ class Test$$Page extends React.Component {
}; };
this.__jp__init(); this.__jp__init();
this.statusDesc = { this.statusDesc = {
0: "失败", 0: "失败",
1: "成功", 1: "成功",
@ -196,12 +195,10 @@ class Test$$Page extends React.Component {
componentDidMount() { componentDidMount() {
this.$ds.resolve("PROJECTS"); this.$ds.resolve("PROJECTS");
if (this.userTimeout) { if (this.userTimeout) {
clearTimeout(this.userTimeout); clearTimeout(this.userTimeout);
this.userTimeout = null; this.userTimeout = null;
} }
if (this.projectTimeout) { if (this.projectTimeout) {
clearTimeout(this.projectTimeout); clearTimeout(this.projectTimeout);
this.projectTimeout = null; this.projectTimeout = null;