summary refs log tree commit diff
path: root/scripts/stresstest/src/register/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/stresstest/src/register/index.js')
-rw-r--r--scripts/stresstest/src/register/index.js10
1 files changed, 7 insertions, 3 deletions
diff --git a/scripts/stresstest/src/register/index.js b/scripts/stresstest/src/register/index.js
index 86f908cd..38089dc7 100644
--- a/scripts/stresstest/src/register/index.js
+++ b/scripts/stresstest/src/register/index.js
@@ -4,7 +4,11 @@ var config = require("../../config.json");
 module.exports = generate;
 async function generate() {
 	var mail = (Math.random() + 10).toString(36).substring(2);
-	mail = mail + "." + (Math.random() + 10).toString(36).substring(2) + "@stresstest.com";
+	mail =
+		mail +
+		"." +
+		(Math.random() + 10).toString(36).substring(2) +
+		"@stresstest.com";
 	var password =
 		(Math.random() * 69).toString(36).substring(-7) +
 		(Math.random() * 69).toString(36).substring(-7) +
@@ -20,12 +24,12 @@ async function generate() {
 		consent: true,
 		date_of_birth: "2000-04-04",
 		gift_code_sku_id: null,
-		captcha_key: null
+		captcha_key: null,
 	};
 	var x = await fetch(config.url + "/auth/register", {
 		method: "POST",
 		headers: { "Content-Type": "application/json" },
-		body: JSON.stringify(body)
+		body: JSON.stringify(body),
 	});
 	console.log(x);
 	x = await x.json();