test(connection): write model tests

This commit is contained in:
Ali BARIN
2024-10-14 10:58:50 +00:00
parent 8268cd4d09
commit 0f77a1ec03
3 changed files with 243 additions and 29 deletions

View File

@@ -0,0 +1,51 @@
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
exports[`Connection model > jsonSchema should have correct validations 1`] = `
{
"properties": {
"appAuthClientId": {
"format": "uuid",
"type": "string",
},
"createdAt": {
"type": "string",
},
"data": {
"type": "string",
},
"deletedAt": {
"type": "string",
},
"draft": {
"type": "boolean",
},
"formattedData": {
"type": "object",
},
"id": {
"format": "uuid",
"type": "string",
},
"key": {
"maxLength": 255,
"minLength": 1,
"type": "string",
},
"updatedAt": {
"type": "string",
},
"userId": {
"format": "uuid",
"type": "string",
},
"verified": {
"default": false,
"type": "boolean",
},
},
"required": [
"key",
],
"type": "object",
}
`;