refactor(app-config): remove canCustomConnect virtual attribute

This commit is contained in:
Ali BARIN
2024-10-09 09:35:36 +00:00
committed by Faruk AYDIN
parent 6e42b52414
commit a76bee51fc
9 changed files with 12 additions and 25 deletions

View File

@@ -36,14 +36,14 @@ describe('AppConfig model', () => {
expect(AppConfig.virtualAttributes).toMatchSnapshot();
});
describe('canCustomConnect', () => {
describe('allowCustomConnection', () => {
it('should return true when app is enabled and allows custom connection', async () => {
const appConfig = await createAppConfig({
disabled: false,
allowCustomConnection: true,
});
expect(appConfig.canCustomConnect).toBe(true);
expect(appConfig.allowCustomConnection).toBe(true);
});
it('should return false when app is disabled', async () => {
@@ -52,7 +52,7 @@ describe('AppConfig model', () => {
allowCustomConnection: true,
});
expect(appConfig.canCustomConnect).toBe(false);
expect(appConfig.allowCustomConnection).toBe(false);
});
it(`should return false when app doesn't allow custom connection`, async () => {
@@ -61,7 +61,7 @@ describe('AppConfig model', () => {
allowCustomConnection: false,
});
expect(appConfig.canCustomConnect).toBe(false);
expect(appConfig.allowCustomConnection).toBe(false);
});
});