Skip to content

Commit

Permalink
test: rename donwload folder to downloads
Browse files Browse the repository at this point in the history
  • Loading branch information
amoncaldas committed Dec 30, 2021
1 parent bec4afb commit 5af1c18
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion tests/e2e/commands/checkDownloadFileIsValid.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const fs = require('fs')
function checkDownloadFileIsValid() {}

checkDownloadFileIsValid.prototype.command = function (fileName) {
let path = `${__dirname}/../download/${fileName}`
let path = `${__dirname}/../downloads/${fileName}`

if (fs.existsSync(path)) {
var stats = fs.statSync(path)
Expand Down
4 changes: 2 additions & 2 deletions tests/e2e/commands/clearDownloadFolder.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@ function clearDownloadFolder() {}

clearDownloadFolder.prototype.command = function () {

let folder =__dirname + '/../download/'
let folder =__dirname + '/../downloads/'

fs.readdir(folder, (err, files) => {
if (err) throw err
for (const file of files) {
console.log(`File ${file} deleted successfully`)
fs.unlinkSync(folder+file)
}
console.log('Download folder cleared successfully')
console.log('Downloads folder cleared successfully')
})
}.bind(this)

Expand Down
2 changes: 1 addition & 1 deletion tests/e2e/commands/deleteDownloadedFile.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const fs = require('fs')
function deleteDownloadedFile() {}

deleteDownloadedFile.prototype.command = function (fileName) {
let path = `${__dirname}/../download/${fileName}`
let path = `${__dirname}/../downloads/${fileName}`
fs.unlinkSync(path)
}.bind(this)

Expand Down

0 comments on commit 5af1c18

Please sign in to comment.