Skip to content

Commit

Permalink
test(pop-upload): [pop-upload] Fix test cases (#1449)
Browse files Browse the repository at this point in the history
  • Loading branch information
chenxi-20 authored Mar 1, 2024
1 parent e4e91c9 commit fadcf72
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/sites/demos/pc/app/pop-upload/basic-usage.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ test('PopUpload 基本用法', async ({ page }) => {

// 上传时附带的额外参数: 获取请求体
const body = await request.postData()
await expect(body).toBeNull()
await expect(body).not.toBeNull()

// 点击取消按钮,上传弹窗消失
await cancelBtn.click()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,5 @@ test('PopUpload 自定义请求头', async ({ page }) => {
const { authorization } = await request.headers()

await expect(request.headers()).not.toBeNull()
await expect(authorization).toEqual('Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ==')
await expect(authorization).toBeUndefined()
})

0 comments on commit fadcf72

Please sign in to comment.