Skip to content

Commit

Permalink
🧪 test(utils): 测试其他接口是否会出现请求失败的错误。
Browse files Browse the repository at this point in the history
  • Loading branch information
ruan-cat committed Dec 25, 2024
1 parent c829db8 commit bef2295
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions packages/utils/src/tests/mall-apifox-port/simple-axios.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,16 @@ function createAxiosInstance() {
}

function main() {
axios.get("https://pcapi-xiaotuxian-front-devtest.itheima.net/home/hot").then((res) => {
console.log(" ? ", res);
});
axios
.get(
//
//
"https://pcapi-xiaotuxian-front-devtest.itheima.net/home/category/head",
// "https://pcapi-xiaotuxian-front-devtest.itheima.net/home/hot"
)
.then((res) => {
console.log(" ? ", res);
});
}

main();

0 comments on commit bef2295

Please sign in to comment.