test(access-token): write model tests

This commit is contained in:
Ali BARIN
2024-10-01 09:56:46 +00:00
parent d35cf8d31e
commit 4db8683bd6
3 changed files with 133 additions and 7 deletions

View File

@@ -0,0 +1,41 @@
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
exports[`AccessToken model > jsonSchema should have correct validations 1`] = `
{
"properties": {
"expiresIn": {
"type": "integer",
},
"id": {
"format": "uuid",
"type": "string",
},
"revokedAt": {
"format": "date-time",
"type": [
"string",
"null",
],
},
"samlSessionId": {
"type": [
"string",
"null",
],
},
"token": {
"minLength": 32,
"type": "string",
},
"userId": {
"format": "uuid",
"type": "string",
},
},
"required": [
"token",
"expiresIn",
],
"type": "object",
}
`;