test(app-config): write model tests

This commit is contained in:
Ali BARIN
2024-10-01 15:52:28 +00:00
committed by Faruk AYDIN
parent dabb01e237
commit ecb04b4ba9
2 changed files with 159 additions and 0 deletions

View File

@@ -0,0 +1,44 @@
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
exports[`AppConfig model > jsonSchema should have correct validations 1`] = `
{
"properties": {
"allowCustomConnection": {
"default": false,
"type": "boolean",
},
"createdAt": {
"type": "string",
},
"disabled": {
"default": false,
"type": "boolean",
},
"id": {
"format": "uuid",
"type": "string",
},
"key": {
"type": "string",
},
"shared": {
"default": false,
"type": "boolean",
},
"updatedAt": {
"type": "string",
},
},
"required": [
"key",
],
"type": "object",
}
`;
exports[`AppConfig model > virtualAttributes should return correct properties 1`] = `
[
"canConnect",
"canCustomConnect",
]
`;