Move Cypress directory and convert it to JavaScript (#2170)

This commit is contained in:
Louis Lam
2022-10-04 22:23:57 +08:00
committed by GitHub
parent 16b2cf0e89
commit afbc283423
18 changed files with 75 additions and 75 deletions

View File

@@ -280,9 +280,9 @@ function getCryptoRandomInt(min, max) {
}
exports.getCryptoRandomInt = getCryptoRandomInt;
/**
* Generate a secret
* @param length Lenght of secret to generate
* @returns
* Generate a random alphanumeric string of fixed length
* @param length Length of string to generate
* @returns string
*/
function genSecret(length = 64) {
let secret = "";