test: Add idColumn test to app config model
This commit is contained in:
@@ -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();
|
||||||
});
|
});
|
||||||
|
Reference in New Issue
Block a user