Udpate cypress

This commit is contained in:
Jamie Curnow
2023-01-06 15:02:40 +10:00
parent 6efa4e2beb
commit e39f18b0d1
6 changed files with 32 additions and 32 deletions

View File

@ -0,0 +1,11 @@
module.exports = {
generateRandomString: function (length) {
var result = '';
var characters = 'ABCDEFGHIJK LMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789';
var charactersLength = characters.length;
for (var i = 0; i < length; i++) {
result += characters.charAt(Math.floor(Math.random() * charactersLength));
}
return result;
},
};