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 wrongKey = "notTheKey";
const outputObject = {
user: "admin",
role: "superuser",
};
const outputObject = `{
"role": "superuser",
"user": "admin"
}`;
const outputVerify = {
valid: true,
payload: outputObject,
};
const outputVerify = `{
"valid": true,
"payload": {
"role": "superuser",
"user": "admin"
}
}`;
TestRegister.addTests([
{