test: Add idColumn test to app config model

This commit is contained in:
Faruk AYDIN
2024-10-24 16:58:54 +02:00
parent e4c17c1bc7
commit f73ffc8711

View File

@@ -12,6 +12,10 @@ describe('AppConfig model', () => {
expect(AppConfig.tableName).toBe('app_configs'); expect(AppConfig.tableName).toBe('app_configs');
}); });
it('idColumn should return key field', () => {
expect(AppConfig.idColumn).toBe('key');
});
it('jsonSchema should have correct validations', () => { it('jsonSchema should have correct validations', () => {
expect(AppConfig.jsonSchema).toMatchSnapshot(); expect(AppConfig.jsonSchema).toMatchSnapshot();
}); });