Skip to content

Commit

Permalink
* [CY] fix typedoc
Browse files Browse the repository at this point in the history
  • Loading branch information
lanfon72 committed Jun 8, 2022
1 parent ef75135 commit f8cc43c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cypress/testcases/dashboard/support.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ describe("Support Page", () => {
})

it('is should download', () => {
let filename = undefined
let filename: string | undefined = undefined
page.generateSupportBundleBtn.click()
page.inputSupportBundle('this is a test bundle')
.get("@generateBtn").click()
Expand All @@ -91,7 +91,7 @@ describe("Support Page", () => {
new Promise((resolve, reject) => {
if (filename !== undefined) {
cy.task("findFiles", {path: Cypress.config("downloadsFolder"), fileName: "supportbundle"})
.then(files => files.length == 1 ? resolve(files[0]) : reject(files))
.then((files: any) => files.length == 1 ? resolve(files[0]) : reject(files))
}
resolve(filename)
})
Expand All @@ -103,9 +103,9 @@ describe("Support Page", () => {
.then(entries => resolve(entries))
})
})
.then((items) => {
.then((items: any) => {
cy.log(`ZipFile entries: ${items.length}`)
let {dirs, files} = items.reduce((groups,e) => {
let {dirs, files} = items.reduce((groups: any, e: any) => {
e.isDirectory ? groups.dirs.push(e) : groups.files.push(e)
return groups
}, {dirs:[], files:[]})
Expand Down

0 comments on commit f8cc43c

Please sign in to comment.