test: Implement UsageData model tests

This commit is contained in:
Faruk AYDIN
2024-10-10 12:08:41 +02:00
parent 9250456e7b
commit b51bae14ec
2 changed files with 93 additions and 0 deletions

View File

@@ -0,0 +1,41 @@
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
exports[`UsageData model > jsonSchema should have correct validations 1`] = `
{
"properties": {
"consumedTaskCount": {
"type": "integer",
},
"createdAt": {
"type": "string",
},
"deletedAt": {
"type": "string",
},
"id": {
"format": "uuid",
"type": "string",
},
"nextResetAt": {
"type": "string",
},
"subscriptionId": {
"format": "uuid",
"type": "string",
},
"updatedAt": {
"type": "string",
},
"userId": {
"format": "uuid",
"type": "string",
},
},
"required": [
"userId",
"consumedTaskCount",
"nextResetAt",
],
"type": "object",
}
`;