Fix Flask Session Tests - need a string not an object

This commit is contained in:
GCHQDeveloper581 2026-04-29 10:42:16 +00:00
parent 6b5a902e33
commit f43a9df180
No known key found for this signature in database
GPG Key ID: 6222E059A3DF595C

View File

@ -14,15 +14,18 @@ const validTokenSha256 = "eyJyb2xlIjoic3VwZXJ1c2VyIiwidXNlciI6ImFkbWluIn0.aab3Ew
const validKey = "mysecretkey"; const validKey = "mysecretkey";
const wrongKey = "notTheKey"; const wrongKey = "notTheKey";
const outputObject = { const outputObject = `{
user: "admin", "role": "superuser",
role: "superuser", "user": "admin"
}; }`;
const outputVerify = { const outputVerify = `{
valid: true, "valid": true,
payload: outputObject, "payload": {
}; "role": "superuser",
"user": "admin"
}
}`;
TestRegister.addTests([ TestRegister.addTests([
{ {