Fix Flask Session Tests - need a string not an object
This commit is contained in:
parent
6b5a902e33
commit
f43a9df180
@ -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([
|
||||
{
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user