Skip to content

Commit

Permalink
remove unused function
Browse files Browse the repository at this point in the history
  • Loading branch information
0xtzData committed Feb 16, 2025
1 parent 5da5d53 commit da4284a
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions tests/e2e/lib/File.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,17 +17,6 @@ export const LoadDataFile = (url: string): any => {
}
}

export const LoadDataFileRelease = (url: string): string => {
const u = url.endsWith(`/`) ? url.slice(0, -1) : url
const fileName = u.split(`//`)[1].split(`.`).slice(0, -1).join(`.`)
try {
// eslint-disable-next-line consistent-return
return JSON.parse(readFileSync(`static/${fileName}.json`).toString())
} catch (err) {
console.log(chalk.red(`Error reading static data for ${fileName}, file should be named as first two domain sections of URL: ${u}, err: ${err}`))
}
}

const newReqCtx = async (url: string) => request.newContext({
baseURL: url,
extraHTTPHeaders: {},
Expand Down

0 comments on commit da4284a

Please sign in to comment.